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

Use require("graceful-fs") if found instead of require("fs") #17

Closed
cadorn opened this issue Feb 8, 2013 · 2 comments
Closed

Use require("graceful-fs") if found instead of require("fs") #17

cadorn opened this issue Feb 8, 2013 · 2 comments

Comments

@cadorn
Copy link

cadorn commented Feb 8, 2013

try {
  // optional dependency
  fs = require("graceful-fs")
} catch (er) {
  fs = require("fs")
}

See:

This would allow me to get rid of the graceful-fs dependency in my project and exclusively use fs-extra for my FS API.

@jprichardson
Copy link
Owner

This is a good idea, I'll look into it.

@cadorn
Copy link
Author

cadorn commented Mar 18, 2013

Nice. Thanks!

ovr pushed a commit to ovr/node-fs-extra that referenced this issue Nov 12, 2020
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
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