find-file-up
Advanced tools
Comparing version 1.0.1 to 1.0.2
13
index.js
@@ -36,3 +36,8 @@ /*! | ||
exists(fp, function(exists) { | ||
fileExists(fp, function(err, exists) { | ||
if (err) { | ||
next(err); | ||
return; | ||
} | ||
n++; | ||
@@ -86,6 +91,6 @@ | ||
function exists(filepath, cb) { | ||
function fileExists(filepath, cb) { | ||
fs.stat(filepath, function(err) { | ||
if (err && err.code === 'ENOENT') { | ||
cb(false); | ||
cb(null, false); | ||
return; | ||
@@ -97,4 +102,4 @@ } | ||
} | ||
cb(true); | ||
cb(null, true); | ||
}); | ||
} |
{ | ||
"name": "find-file-up", | ||
"description": "Find a file, starting with the given cwd and recursively searching up one directory until it's found (or we run out of directories). Async and sync.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/jonschlinkert/find-file-up", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -93,2 +93,2 @@ # find-file-up [![NPM version](https://img.shields.io/npm/v/find-file-up.svg?style=flat)](https://www.npmjs.com/package/find-file-up) [![NPM monthly downloads](https://img.shields.io/npm/dm/find-file-up.svg?style=flat)](https://npmjs.org/package/find-file-up) [![NPM total downloads](https://img.shields.io/npm/dt/find-file-up.svg?style=flat)](https://npmjs.org/package/find-file-up) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/find-file-up.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/find-file-up) | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 19, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 20, 2017._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8815
82