xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Deno v1.9.1 All In One

Deno v1.9.1 All In One

A secure runtime for JavaScript and TypeScript.

$ curl -fsSL https://deno.land/x/install/install.sh | sh

$ brew install deno

https://deno.land/

Standard Library

https://deno.land/std@0.94.0

demo

$ deno run https://deno.land/std/examples/welcome.ts

Or a more complex one:


import { serve } from "https://deno.land/std@0.94.0/http/server.ts";

const s = serve({ port: 8000 });

console.log("http://localhost:8000/");

for await (const req of s) {
  req.respond({ body: "Hello World\n" });
}

deno architecture

https://deno.land/manual/contributing/architecture

https://github.com/denoland/manual/blob/v1.21.1/contributing/architecture.md

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-04-21 23:07  xgqfrms  阅读(68)  评论(4编辑  收藏  举报