diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 30 |
1 files changed, 9 insertions, 21 deletions
@@ -2,27 +2,15 @@ [](https://travis-ci.com/denoland/deno_std) -Usage: +This repository contains collections of modules that create a standard library +for Deno. -```typescript -import { serve } from "https://deno.land/x/net/http.ts"; -const s = serve("0.0.0.0:8000"); +| Collection | Description | +| ---------------------------- | --------------------------------------------------------------- | +| [colors](./colors/README.md) | Modules that generate ANSI color codes for the console. | +| [net](./net/README.md) | A framework for creating HTTP/HTTPS servers inspired by GoLang. | +| [path](./path/README.md) | A path manipulation library. | -async function main() { - for await (const req of s) { - req.respond({ body: new TextEncoder().encode("Hello World\n") }); - } -} - -main(); -``` - -## File Server - -A small program for serving local files over HTTP. - -Add the following to your `.bash_profile` -``` -alias file_server="deno https://deno.land/x/net/file_server.ts --allow-net" -``` +--- +Copyright 2018 the Deno authors. All rights reserved. MIT license. |
