npm / npm-registry-client

http://npm.im/npm-registry-client
ISC License
264 stars 108 forks source link

Add browserify support #137

Closed deathcap closed 7 years ago

deathcap commented 8 years ago

npm-registry-client depends on synchronous filesystem operations fs.readdirSync() and fs.statSync(), which are cumbersome to browserify. This PR removes those sync fs API usages to allow for browserification — this is the only change needed, at least to get npm-registry-client to browserify unmodified (npm itself requires additional changes, but this change is simple enough to PR independently).

All tests pass.

zkat commented 7 years ago

Merged as 4042ad0de16fb924b48534f06bafd46821e48ce1