1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
denoland-deno/website/index.html

164 lines
5.3 KiB
HTML
Raw Normal View History

2019-01-25 13:40:56 -05:00
<!-- Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -->
2018-09-21 12:06:59 -04:00
<!DOCTYPE html>
<html>
2019-02-02 18:40:18 -05:00
<head>
<title>Deno</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/default.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/github-gist.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/languages/typescript.min.js"></script>
2019-02-02 18:40:18 -05:00
<link rel="stylesheet" href="style.css" />
2019-02-11 17:41:13 -05:00
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
2019-02-02 18:40:18 -05:00
</head>
<body>
<main>
2019-02-11 17:41:13 -05:00
<header>
<img id="logo" src="images/deno_logo_3.svg" width=200>
2019-02-11 17:41:13 -05:00
<div>
<h1>Deno</h1>
2019-03-22 11:34:47 -04:00
A secure runtime for JavaScript and TypeScript built with V8, Rust, and Tokio
2019-02-11 17:41:13 -05:00
</div>
</header>
2019-02-02 18:40:18 -05:00
<table>
<tr>
<th></th>
<th>Linux &amp; Mac</th>
<th>Windows</th>
</tr>
<tr>
2019-02-11 17:41:13 -05:00
<th><a href="https://github.com/denoland/deno">deno</a></th>
2019-02-02 18:40:18 -05:00
<td>
2019-02-03 12:49:38 -05:00
<a class="badge" href="https://travis-ci.com/denoland/deno">
2019-02-11 17:41:13 -05:00
<img
src="https://travis-ci.com/denoland/deno.svg?branch=master"
/>
2019-02-03 12:49:38 -05:00
</a>
2019-02-02 18:40:18 -05:00
</td>
<td>
2019-02-03 12:49:38 -05:00
<a class="badge" href="https://ci.appveyor.com/project/deno/deno">
2019-02-11 17:41:13 -05:00
<img
src="https://ci.appveyor.com/api/projects/status/yel7wtcqwoy0to8x/branch/master?svg=true"
/>
2019-02-03 12:49:38 -05:00
</a>
2019-02-02 18:40:18 -05:00
</td>
</tr>
<tr>
2019-02-11 17:41:13 -05:00
<th><a href="https://github.com/denoland/deno_std">deno_std</a></th>
2019-02-02 18:40:18 -05:00
<td colspan="2">
<a
class="badge"
href="https://dev.azure.com/denoland/deno_std/_build?definitionId=2"
2019-02-03 12:49:38 -05:00
>
2019-02-11 17:41:13 -05:00
<img
src="https://dev.azure.com/denoland/deno_std/_apis/build/status/denoland.deno_std?branchName=master"
/>
2019-02-03 12:49:38 -05:00
</a>
2019-02-02 18:40:18 -05:00
</td>
</tr>
<tr>
<th>
<a href="https://github.com/denoland/deno_install">deno_install</a>
</th>
<td>
2019-02-03 12:49:38 -05:00
<a class="badge" href="https://travis-ci.com/denoland/deno_install">
2019-02-11 17:41:13 -05:00
<img
src="https://travis-ci.com/denoland/deno_install.svg?branch=master"
/>
2019-02-03 12:49:38 -05:00
</a>
2019-02-02 18:40:18 -05:00
</td>
<td>
<a
class="badge"
href="https://ci.appveyor.com/project/deno/deno-install"
2019-02-03 12:49:38 -05:00
>
2019-02-11 17:41:13 -05:00
<img
src="https://ci.appveyor.com/api/projects/status/gtekeaf7r60xa896?branch=master&svg=true"
/>
2019-02-03 12:49:38 -05:00
</a>
2019-02-02 18:40:18 -05:00
</td>
</tr>
<tr>
2019-02-11 17:41:13 -05:00
<th><a href="https://github.com/denoland/registry">registry</a></th>
<td colspan=2>
<a class="badge" href="https://travis-ci.com/denoland/registry">
<img
src="https://travis-ci.com/denoland/registry.svg?branch=master"
/>
</a>
</td>
2019-02-02 18:40:18 -05:00
</tr>
</table>
2019-02-11 17:41:13 -05:00
<h2 id="install">Install <a href="#install">#</a></h2>
2019-02-02 18:40:18 -05:00
<p>Using Shell:</p>
<pre>curl -fsSL <a
2019-02-11 17:41:13 -05:00
href="https://github.com/denoland/deno_install/blob/master/install.sh">https://deno.land/x/install/install.sh</a> | sh</pre>
<p>Or using PowerShell:</p>
<pre>iwr <a
href="https://github.com/denoland/deno_install/blob/master/install.ps1">https://deno.land/x/install/install.ps1</a> | iex</pre>
<p>See <a href="https://github.com/denoland/deno_install">deno_install</a> for more installation options.</p>
2018-12-18 18:13:01 -05:00
2019-02-11 17:41:13 -05:00
<h2 id="example">Example <a href="#example">#</a></h2>
2019-02-02 18:40:18 -05:00
2019-02-11 17:41:13 -05:00
<p>Try running a simple program:</p>
2019-05-03 17:15:16 -04:00
<pre>deno run https://deno.land/welcome.ts</pre>
2019-02-11 17:41:13 -05:00
<p>Or a more complex one:</p>
2018-12-18 18:13:01 -05:00
2019-03-15 11:52:45 -04:00
<pre><code class="typescript language-typescript">import { serve } from "https://deno.land/std@v0.3.2/http/server.ts";
2019-02-02 18:40:18 -05:00
2019-02-11 17:41:13 -05:00
async function main() {
const body = new TextEncoder().encode("Hello World\n");
for await (const req of serve(":8000")) {
req.respond({ body });
2019-02-11 17:41:13 -05:00
}
}
2019-02-02 18:40:18 -05:00
main();</code></pre>
2019-02-02 18:40:18 -05:00
2019-02-11 17:41:13 -05:00
<h2 id="dig-in">Dig in... <a href="#dig-in">#</a></h2>
2019-02-02 18:40:18 -05:00
<p>
2019-02-11 17:41:13 -05:00
<b><a href="manual.html">Manual</a></b>
2019-02-02 18:40:18 -05:00
</p>
2019-02-21 23:22:44 -05:00
<p><a href="https://deno.land/typedoc/">API Reference</a></p>
2019-02-02 18:40:18 -05:00
2019-02-11 17:41:13 -05:00
<p><a href="style_guide.html">Style Guide</a></p>
<p><a href="https://deno.land/x/">Module repository</a></p>
2019-02-02 18:40:18 -05:00
2019-03-22 11:34:47 -04:00
<p><a href="https://twitter.com/deno_land">Twitter Account</a></p>
2019-02-03 12:49:38 -05:00
<p>
2019-02-11 17:41:13 -05:00
<a href="https://github.com/denoland/deno/blob/master/Releases.md"
>Release notes</a
2019-02-03 12:49:38 -05:00
>
</p>
2019-02-02 18:40:18 -05:00
2019-02-11 17:41:13 -05:00
<p><a href="https://gitter.im/denolife/Lobby">Community chat room</a></p>
2019-02-03 12:49:38 -05:00
2019-02-11 17:41:13 -05:00
<p><a href="benchmarks.html">Benchmarks</a></p>
2019-02-03 12:49:38 -05:00
<p>
2019-02-11 17:41:13 -05:00
<a href="https://github.com/denolib/awesome-deno"
>A curated list of awesome Deno things</a
>
2019-02-03 12:49:38 -05:00
</p>
<script>
2019-02-16 09:02:14 -05:00
// Disable automatic language detection
hljs.configure({
languages: [],
});
hljs.initHighlighting();
</script>
2019-02-02 18:40:18 -05:00
</main>
</body>
2018-09-21 12:06:59 -04:00
</html>