1,913 captures
26 Oct 2018 - 12 Mar 2026
Sep OCT Nov
10
2021 2022 2023
success
fail

About this capture

COLLECTED BY

Collection: Save Page Now

TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20221010034413/https://deno.land/
 
Check out Deno News issue #51!


Deno Logo

Search...
K
ManualAPIStandard LibraryThird Party ModulesDeploy

Deno

Amodern runtime for JavaScript and TypeScript

Installv1.26.1
Deno is a simple, modern and secure runtime for JavaScript, TypeScript, and WebAssembly that uses V8 and is built in Rust.
(一)Provides web platform functionality and adopts web platform standards.
(二)Secure by default. No file, network, or environment access, unless explicitly enabled.
(三)Supports TypeScript out of the box.
(四)Ships only a single executable file.
(五)Has built-in development tooling like a dependency inspector (deno info) and a code formatter (deno fmt).
(六)Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno: deno.land/std.
(七)Has a number of companies interested in using and exploring Deno.

Installation


Deno ships as a single executable with no dependencies. You can install it using the installers below, or download a release binary from the releases page.
Shell (Mac, Linux):
$
curl -fsSL https://deno.land/install.sh | sh

PowerShell (Windows):
$
irm https://deno.land/install.ps1 | iex

Homebrew (Mac):
$
brew install deno

See deno_install for more installation options.

Getting Started


Try running a simple program:
$
deno run https://deno.land/std@0.159.0/examples/welcome.ts

Or a more complex one:
import { serve } from "https://deno.land/std@0.159.0/http/server.ts";serve(req => new Response("Hello World\n"));

You can find a more in depth introduction, examples, and environment setup guides in the manual.

Runtime Documentation


The basic runtime documentation for Deno can be found on doc.deno.land.
Deno comes with a manual which contains more in depth explanations about the more complex functions of the runtime, an introduction to the concepts that Deno is built on, details about the internals of Deno, how to embed Deno in your own application and how to extend Deno using Rust plugins.
The manual also contains information about the built in tools that Deno provides.

Standard Modules


Next to the Deno runtime, Deno also provides a list of audited standard modules that are reviewed by the Deno maintainers and are guaranteed to work with a specific Deno version. These live in the denoland/deno_std repository.
These standard modules are hosted at deno.land/std and are distributed via URLs like all other ES modules that are compatible with Deno.

Built-in Toolchain


Deno comes with a robust set of tools, so you can spend less time searching and evaluating third party modules, and more time writing code and being productive. Here are a few examples.
Lint all JS/TS files in the current directory and subdirectories:
$
deno lintChecked 54 files

Format all supported files in the current directory and subdirectories:
$
deno fmtChecked 46 files

Run a test:
$
deno test https://deno.land/std@0.159.0/testing/chai_example.tsrunning 3 tests from https://deno.land/std@0.159.0/testing/chai_example.tstest we can make chai assertions ... ok (8ms)test we can make chai expectations ... ok (2ms)test we can use chai should style ... ok (4ms)
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (27ms)

For the full list of tools and their options, see here.

Examples


Here are some examples that you can use to get started immediately.
(一)Hello World
(二)Importing & Exporting
(三)Dependency Management
(四)HTTP Requests
(五)HTTP Server: Hello World
For more examples, check out examples.deno.land.

Deno in Production


Slack Slack
Netlify Netlify
GitHub GitHub
Supabase Supabase
Deno Logo


Develop LocallyDeploy GloballyCompare to Node.jsBenchmarks


Deno CLIDeno DeployDeploy Subhosting


CLI ManualCLI Runtime APIDeploy DocsStandard LibraryThird-Party Modules


ArtworksTranslationsShowcase


BlogPricingNewsMerchPrivacy Policy
Copyright © 2022 Deno Land Inc. All rights reserved.We are hiring, join us