denofy
v0.4.1
Published
Convert your node code into deno
Downloads
2
Readme
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 - ~~Inject
createRequrie
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)
- [x] Support esm gen
- [ ] ~~Support commonjs gen + createRequire (deno commonjs shim mode) IMPOSSIBLE~~