Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgqaq/denofy
https://github.com/cgqaq/denofy
convert deno nodejs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cgqaq/denofy
- Owner: CGQAQ
- License: mit
- Created: 2022-11-30T00:46:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T13:26:32.000Z (about 2 years ago)
- Last Synced: 2024-10-04T17:33:20.605Z (4 months ago)
- Topics: convert, deno, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/denofy
- Size: 25.4 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Convert your node code into deno
## Still work in progress and a long way to PoC
## See demo (after git clone)
```console
yarn install
cd example
yarn start
```## Idea
- Map npm dep `foo` to `npm:foo`
- Map node builtins `fs` to `https://deno.land/std/node/fs.ts`
- Gen import_maps.json in `non-inline` mode
- ~~Inject `createRequrie` code from `https://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~~