From a3d164df917536c702775af1937569825fc5ceaf Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 19 Dec 2018 15:30:44 +1100 Subject: Add colors module (denoland/deno_std#30) Original: https://github.com/denoland/deno_std/commit/54787f172c62df7c98d8e9e534c40e317825e614 --- README.md | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ab668e913..73d48ab3a 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,15 @@ [![Build Status](https://travis-ci.com/denoland/deno_std.svg?branch=master)](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. -- cgit v1.2.3