Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make @std/path cross-runtime #6164

Open
iyefrat opened this issue Oct 31, 2024 · 2 comments
Open

make @std/path cross-runtime #6164

iyefrat opened this issue Oct 31, 2024 · 2 comments

Comments

@iyefrat
Copy link

iyefrat commented Oct 31, 2024

Is your feature request related to a problem? Please describe.

I'm looking for a good isomorphic path library in javascript that can be used in both the browser and Node. I can't move to Deno just yet, but @std/path looks great!

From #4914 it seems like it may already be cross-platform, or at least close to it. However it's not marked as such on jsr.

Describe the solution you'd like

If it's indeed cross platform, update the jsr page. If not, what are the gotchas? can a subset of it be safely used? Is there a way I can check myself other than trying to use it and hoping I bump into incompatibility errors before they cause actual bugs?

@BlackAsLight
Copy link
Contributor

After a quick skim of the source code, I don't see why it wouldn't work on nodejs. The library just doesn't seem to be tested for nodejs

@iyefrat
Copy link
Author

iyefrat commented Nov 1, 2024

From looking a bit deeper, this is the only deno only section i found:

// This module is browser compatible.

Also in packages that are marked as node compatible (e.g. @std/yaml), I couldn't find anything in the code that checked that, i guess the org just enables it on jsr once the package doesn't visibly depend on any Deno specific things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants