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).
- After installing
dsbuild
, rundeno task build
from this directory. - Run
node public/app.js
from this directory to run your Deno program using node.