Skip to main content

Node → Deno cheatsheet

Node.jsDeno
node file.jsdeno run file.js
ts-node file.tsdeno run file.ts
node -edeno eval
npm i -gdeno install
npm i / npm installn/a ¹
npm rundeno task
eslintdeno lint
prettierdeno fmt
package.jsondeno.json / deno.jsonc / import_map.json
tscdeno check ²
typedocdeno doc
jest / ava / mocha / tap / etcdeno test
nodemondeno run/lint/test --watch
nexe / pkgdeno compile
npm explaindeno info
nvm / n / fnmdeno upgrade
tsserverdeno lsp
nyc / c8 / istanbuldeno coverage
benchmarksdeno bench

¹ See Modules, the runtime downloads and caches the code on first use.

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