logo
GitHubEdit on GitHub

Node -> Deno cheatsheet

Node Deno
npm i -g deno install
npm i / npm install n/a ¹
npm run deno run
eslint deno lint
prettier deno fmt
rollup / webpack / etc deno bundle
package.json deno.json / deno.jsonc / import_map.json
tsc n/a; tsc is built-in ²
typedoc deno doc
jest / ava / mocha / tap / etc deno test
nodemon deno run/lint/test --watch
nexe / pkg deno compile
npm explain deno info
nvm / n / fnm deno upgrade
tsserver deno lsp
nyc / c8 / istanbul deno coverage
benchmarks https://deno.land/std/testing/bench.ts ³

¹ See Linking to external code, the runtime downloads and caches the code on first use.

² Type checking happens automatically, TypeScript compiler is built into the deno binary.

³ deno bench subcommand is being considered, see https://github.com/denoland/deno/issues/9175