0.4.1 • Published 1 year 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 start
Idea
- Map npm dep
foo
tonpm:foo
- Map node builtins
fs
tohttps://deno.land/std/node/fs.ts
- Gen import_maps.json in
non-inline
mode InjectcreateRequrie
code fromhttps://deno.land/std/node/module.ts
in 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