Introduction to Deno 2.0
Uncomplicate JavaScript.)
Deno is the open-source JavaScript runtime for the modern web.
-
A modern JavaScript runtime
-
Performance
-
Secure by default
-
Native TypeScript Support
-
No node_modules, no package installations, it's magic...🪄
-
JSR package manager
-
Jupyter Notebook Kernel
-
Legacy support (backward compatible.)
deno install
deno init
deno main.ts
deno run main.ts
Optional, --allow-read/-R like tags for permissions! (*better security.)
deno add
deno remove
deno task
deno fmt
deno lint
deno check main.ts
deno run --watch
deno test
The executable file sizes are huge* because it comes with the minified deno runtime because, JavaScript is a "dynamic language". And If the difference between KB and MB matters to you, you shouldn't be using JavaScript in the first place.)
deno compile ./main.ts
deno compile --target=x86_64-unknown-linux-gnu ./main.ts
Tip:
--target for compile options.
deno upgrade
Until next time.)
✌️