tldr/pages/common/deno.md

25 lines
493 B
Markdown
Raw Normal View History

2020-03-12 23:33:59 +00:00
# deno
> A secure runtime for JavaScript and TypeScript.
> More information: <https://deno.land/>.
- Run a JavaScript or TypeScript file:
2021-02-18 13:07:05 +00:00
`deno run {{path/to/file.ts}}`
2020-03-12 23:33:59 +00:00
- Start a REPL (interactive shell):
`deno`
- Run a file with network access enabled:
2021-02-18 13:07:05 +00:00
`deno run --allow-net {{path/to/file.ts}}`
2020-03-12 23:33:59 +00:00
- Run a file from a URL:
2021-02-18 13:07:05 +00:00
`deno run {{https://deno.land/std/examples/welcome.ts}}`
2020-03-12 23:33:59 +00:00
- Install an executable script from a URL:
2021-02-18 13:07:05 +00:00
`deno install {{https://deno.land/std/examples/colors.ts}}`