0.4.1 • Published 3 years ago
denofy v0.4.1
Convert your node code into deno
Still work in progress and a long way to PoC
See demo (after git clone)
yarn install
cd example
yarn startIdea
- Map npm dep
footonpm:foo - Map node builtins
fstohttps://deno.land/std/node/fs.ts - Gen import_maps.json in
non-inlinemode InjectcreateRequriecode fromhttps://deno.land/std/node/module.tsin commonjs gen mode- Keep folder structure and don't minify the code for now
TODO
- Support gen node code + import_maps
- Support gen deno code (inline mode)
- Support esm gen
Support commonjs gen + createRequire (deno commonjs shim mode) IMPOSSIBLE