Open recrof opened 2 years ago
We would have to get rid of a few more dependencies, but yes, i think it is quite possible.
We would have to get rid of a few more dependencies, but yes, i think it is quite possible.
Deno includes some of the browser APIs that are not present on node.js, which could help remove few of the dependencies. As I'm from perl background and use mojo utils already(and I'm not mistaken that mojo.js also uses this) Mojo::DOM can use https://deno.land/x/deno_dom@v0.1.31-alpha/deno-dom-wasm.ts which is much closer to native DOMParser present in web browsers.
The DOM parser we already use probably works fine on Deno. HTTP and WebSocket bindings should be fairly easy too. And i'd like to have our own replacements for tough-cookie
, form-data
and busboy
at some point anyway. Those three probably represent most of the real work required.
+1 for Bun. It looks awesome.
Deno 1.28 now supports NPM modules natively so it's worth checking out if mojo.js
will now work "out of the box".
As both mojo.js and Deno are young projects that have great potential and are (imo) great match, would it be possible to port mojo.js to Deno ecosystem?