Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 654 Bytes

File metadata and controls

15 lines (11 loc) · 654 Bytes

dsbuild node example

Demo of a simple nodejs app written in Deno.

This is not a recommended use for dsbuild as this tool does not transform Deno runtime APIs to work with node, nor does it support node: imports, both of which are frequently required for command-line apps. However, for very simple apps, this approach can work.

For the general use case of transforming Deno code to Node you should use dnt (https://github.com/denoland/dnt).

  1. After installing dsbuild, run deno task build from this directory.
  2. Run node public/app.js from this directory to run your Deno program using node.