Skip to content

Commit

Permalink
replace fs-exists with simple one-line implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alanclarke committed Sep 27, 2015
1 parent 1e7dbd3 commit dbb0a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
8 changes: 4 additions & 4 deletions lib/exists.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var nodefn = require('when/node')
var exists = nodefn.lift(require('fs-exists'))

module.exports = exists
var fs = require('fs')
module.exports = function exists (path) {
return new Promise(fs.exists.bind(fs, path))
}
10 changes: 0 additions & 10 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"dependencies": {
"commander": "^2.8.1",
"fs-exists": "^0.1.1",
"mkdirp": "^0.5.1",
"moment": "^2.10.6",
"rimraf": "^2.4.2",
Expand Down

0 comments on commit dbb0a79

Please sign in to comment.