Samples on the Deno.
Deno is a JavaScript/TypeScript runtime with secure defaults and great developer experience.
It's built on V8, Rust, and Tokio.
Visit official website for more Deno features
Deno and node both are developed by Ryan Dahl, there are quite big differences.
- Deno does not use the npm packages, yes you read it correctly!. It uses the URL/file modules
- No package.json
- All the actions are Async and it returns promise by default.
- It's secure by default and prompts the permission for the net/file or environment access.
- It completely uses the ES6 module and no required().
- It supports both JavaScript and TypeScript.
run the below commands from the powershell to install deno
Using Chocolatey (Windows):
choco install deno
Run Helloworld.ts
> deno run --allow-net helloworld.ts
Passing the --allow-net flag is required because deno is secure by default.
Custom TypeScript Compiler Options (Experimental)
deno run -c tsconfig.json helloworld.ts
Samples on the CRUD operation https://github.com/uttesh/deno/tree/master/crud-rest