• Name:deno
  • Description: A modern runtime for JavaScript and TypeScript.
  • Namespace: eyberg
  • Language: javascript
  • Download Count: 15
  • Package Size: 37.97 MB
  • Sha256 Hash: 95136fe1e6b3e0d43b233e6fd82523ac998eaa105bea33acc027930d5948a9fa
  • Created At: 2 years ago
  • Architecture:x86_64
  • Purl:pkg:ops/eyberg/deno@1.24.3
  • Download:
    ops pkg get eyberg/deno:1.24.3
README

A modern runtime for JavaScript and TypeScript.

ops pkg load eyberg/deno:1.24.3 -p 8000 -c config.json -a hi.ts

config.json:

{
  "Files": ["hi.ts"]
}

hi.ts:

const listener = Deno.listen({ port: 8000 });
console.log("http://localhost:8000/");

for await (const conn of listener) {
  serve(conn);
}

async function serve(conn: Deno.Conn) {
  for await (const { respondWith } of Deno.serveHttp(conn)) {
    respondWith(new Response("Hello world"));
  }
}

Need Commercial Support?

NanoVMs has a range of support plans to ensure success.

You can create a free account for open source packages here.