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.
$ deno run 'file-name'
$ deno fmt 'file-name'
--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).
- On command line, do the following command inside a folder to Denon watch file changes.
$ denon -c .denon 'file-name'