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