Skip to content

skywalkerSam/Deno-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Deno 2.0

Uncomplicate JavaScript.)

Deno is the open-source JavaScript runtime for the modern web.

Deno in 100s

Docs

Deno 2.0 Features

  • 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.)

Getting started

deno install 

Initialize

deno init

Run

deno main.ts 
deno run main.ts 

Optional, --allow-read/-R like tags for permissions! (*better security.)

Add packages

deno add

Remove packages

deno remove

Task

deno task

Format

deno fmt

Lint

deno lint

tsc

deno check main.ts

nodemon

deno run --watch

Test

deno test

Compile (*yeah, really.)

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

Cross-compile

deno compile --target=x86_64-unknown-linux-gnu ./main.ts

Tip: --target for compile options.

Upgrade

deno upgrade

Until next time.)

✌️

About

Everything you need to know about Deno

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published