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

cadorn opened this Issue Feb 8, 2013 · 2 comments


None yet

2 participants

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


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


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


Nice. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment