naruaway / npm-in-browser

npm package to run npm CLI in web browsers
MIT License
40 stars 4 forks source link

lightning-fs #2

Open hatemhosny opened 11 months ago

hatemhosny commented 11 months ago

Great project 👍 Thank you.

This is an implementation of fs that works in the browser. It claims to be faster than others. https://github.com/isomorphic-git/lightning-fs

Have you tried that? Does it make any difference in benchmarks?

limikael commented 5 months ago

Agree, great project! 👍

I did try with lightning-fs, but it seems that it doesn't implement all the required functions needed by npm. The first function it broke on was realpathSync. I tried to implement a polyfill for that function, but then it broke on something else rather cryptic.

Interested to know if someone has gotten it to work with anything else rather than memfs?