false-enoent
v1.0.0
Published
wrap a callback to yield false results instead of ENOENT errors
Downloads
3
Readme
var assert = require('assert')
var fs = require('fs')
var falseENOENT = require('false-enoent')
fs.readFile('nonexistent', falseENOENT(function (error, result) {
assert.ifError(error)
assert.strictEqual(result, false)
}))