Wraps fs.exists so callback is called with (err, result).
Wraps native fs.exists so callback is called with
(err, result) instead of just
Since it's just wrapping
err argument will always be
fsExists = require'fs-exists'fsExistspathif err throw err; // err will always be nullifresultconsole.log "the entry exists"elseconsole.log "the entry does not exist"
fs-exists is released under the MIT License.
Copyright (c) 2013 Meryn Stol