deno-runtime

Deno, a secure runtime for JavaScript and TypeScript.

Stars
7

Read the documentation to install

Go by link to Deno documentation.

  • You can run both TypeScript (.ts) files, or JavaScript (.js) files.

  • Not compatible with Node (NPM) packages.

  • Good article from FreeCodeCamp.

Running Deno file

$ deno run 'file-name'

Formatting Code

$ deno fmt 'file-name'

Flags

  • --allow-all (Allow all permissions (same as -A)) - Don't use it.
  • --allow-read (Allow file system read access).
  • --allow-write (Allow file system write access).
  • --allow-plugin (Allow loading plugins).
  • --allow-net (Allow network access).
  • --allow-env (Allow environment access).
  • --allow-run (Allow running subprocesses).

Denon

  • On command line, do the following command inside a folder to Denon watch file changes.
$ denon -c .denon 'file-name'