deno
TLDR
Run a TypeScript/JavaScript file
SYNOPSIS
deno subcommand [options] [script] [args]
DESCRIPTION
Deno is a secure runtime for JavaScript and TypeScript. It executes code in a sandboxed environment where permissions for file, network, and environment access must be explicitly granted.
Deno features native TypeScript support without configuration, a built-in formatter and linter, test runner, and standard library. It uses ES modules exclusively and can import modules directly from URLs, eliminating the need for a package manager.
The runtime is built on V8 and Rust, emphasizing security and modern JavaScript features. It provides Web API compatibility, making code more portable between Deno and browser environments.
PARAMETERS
SUBCOMMAND
Command: run, compile, test, fmt, lint, bundle, etc.SCRIPT
TypeScript/JavaScript file or URL to execute.--allow-net [HOSTS]
Allow network access.--allow-read [PATHS]
Allow filesystem read access.--allow-write [PATHS]
Allow filesystem write access.--allow-env [VARS]
Allow environment variable access.-A, --allow-all
Allow all permissions.--unstable
Enable unstable APIs.--watch
Watch for changes and restart.--help
Display help information.
CAVEATS
Not fully compatible with Node.js modules. Some npm packages require compatibility layers. Permission flags must be specified for each resource type. URL imports depend on remote availability.
HISTORY
Deno was created by Ryan Dahl, the original creator of Node.js, and announced in 2018. It was designed to address perceived shortcomings in Node.js, particularly around security, TypeScript support, and module systems. Version 1.0 was released in 2020.


