You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am very interested in porting this library to Deno (new runtime for JS/TS). Would you mind if I make a PR where I add a folder with Deno compliant code?
The code itself (as far as I can see) is not depending on any other packages or Node (except for util.inspect) so porting it should be a relatively simple task. The steps would be as follows:
Add rollup (or any other bundler which transforms code to ESM syntax from CommonJs) as a dev dependency.
Add to the scripts the command which transforms the code to ESM in a deno folder.
After that, it should be possible using this module with Deno by simply importing it from e.g. https://raw.githubusercontent.com/iarna/iarna-toml/latest/toml.js
Let me know what you think! 😄
The text was updated successfully, but these errors were encountered:
That sounds fantastic! The util-inspect bits are used by the debugging parser which is only used when debugging changes to the parser code itself. (It prints traces of the parse.) It's not actually loaded when you go in through the standard entry points (eg toml.js or parse-string.js).
I would think that parse-stream.js might be a concern however? It uses Node streams. I'd be happy with initial Deno support that just skipped that and only provided parse-string support.
Longer term, a variation that's built around async iterables would be a nice compat path forward, although the lack of standard composition primitives for them makes that a little awkward. An alternative built on WHATWG streams might be better.
Hi! I am very interested in porting this library to Deno (new runtime for JS/TS). Would you mind if I make a PR where I add a folder with Deno compliant code?
The code itself (as far as I can see) is not depending on any other packages or Node (except for util.inspect) so porting it should be a relatively simple task. The steps would be as follows:
deno
folder.After that, it should be possible using this module with Deno by simply importing it from e.g.
https://raw.githubusercontent.com/iarna/iarna-toml/latest/toml.js
Let me know what you think! 😄
The text was updated successfully, but these errors were encountered: