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

Support file:// url in fetch APIs #51

Open
Gozala opened this issue Feb 28, 2022 · 0 comments
Open

Support file:// url in fetch APIs #51

Gozala opened this issue Feb 28, 2022 · 0 comments

Comments

@Gozala
Copy link
Contributor

Gozala commented Feb 28, 2022

I often find myself needing to load assets e.g. in tests in a platform agnostic way. Today this is tricky because in node you need to perform FS read and in browser you have fetch.

It should be fairly trivial to make support file URLs in node making fetch a universal API for loading assets.

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

1 participant