ndesmic / deno-node-example

Example of writing cross-compatible Javascript for Node and Deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deno <-> Node Examples

This repo has examples of bi-directional porting of code from Deno to Node. This is to help anyone who might be trying to take a "write once" approach to their server-side Javascript.

There are 3 examples:

  • Filesystem access
  • Fetching
  • Http Listen + Environment
  • Importing libraries

As well a small example of using Web Streams that I used to test environmental behavior.

About

Example of writing cross-compatible Javascript for Node and Deno


Languages

Language:JavaScript 87.1%Language:Shell 12.2%Language:HTML 0.7%