
Deno 2 Has a Free Node-Compatible Runtime — NPM Packages Just Work
Deno 2 runs Node.js packages without changes. TypeScript by default, built-in formatter/linter/test runner, and a security-first permissions system. What Changed in Deno 2 Deno 1 was idealistic: no npm, no node_modules, URL imports only. Great in theory, ecosystem adoption was slow. Deno 2: full npm compatibility. Your package.json , your node_modules , your npm packages — they just work. What You Get for Free TypeScript without config: // Just run it. No tsconfig, no compilation step. const response = await fetch ( ' https://api.example.com/data ' ); const data : { name : string }[] = await response . json (); console . log ( data ); deno run main.ts # TypeScript runs directly Built-in tools (no extra packages): deno fmt # format code (like Prettier) deno lint # lint code (like ESLint) deno test # run tests (like Vitest) deno bench # benchmark code deno doc # generate documentation deno compile # compile to standalone binary No npm i -D prettier eslint vitest . It's all built in. Secu
Continue reading on Dev.to Webdev
Opens in a new tab


