Comparing version
@@ -1,5 +0,1 @@ | ||
'use strict' | ||
const path = require('path') | ||
const fs = require('fs') | ||
/** | ||
@@ -12,3 +8,2 @@ * Walk up the directory tree until the specified path is found. | ||
*/ | ||
module.exports = walkBack | ||
@@ -39,2 +34,4 @@ /** | ||
function walkBack (startAt, lookingFor) { | ||
const path = require('path') | ||
const fs = require('fs') | ||
startAt = path.resolve(startAt) | ||
@@ -58,1 +55,3 @@ if (fs.existsSync(startAt) && fs.statSync(startAt).isDirectory()) { | ||
} | ||
module.exports = walkBack |
{ | ||
"name": "walk-back", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "Walk up the directory tree until the specified path is found.", | ||
@@ -20,12 +20,15 @@ "repository": "https://github.com/75lb/walk-back.git", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
"test": "test-runner test/test.js", | ||
"docs": "jsdoc2md -t README.hbs index.js > README.md; echo" | ||
"docs": "jsdoc2md -t README.hbs index.js > README.md" | ||
}, | ||
"devDependencies": { | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"test-runner": "^0.5.1" | ||
} | ||
"jsdoc-to-markdown": "^5.0.2", | ||
"test-runner": "^0.7.2" | ||
}, | ||
"files": [ | ||
"index.js" | ||
] | ||
} |
[](https://www.npmjs.org/package/walk-back) | ||
[](https://www.npmjs.org/package/walk-back) | ||
[](https://travis-ci.org/75lb/walk-back) | ||
[](https://david-dm.org/75lb/walk-back) | ||
[](https://david-dm.org/75lb/walk-back) | ||
[](https://github.com/feross/standard) | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
5798
-16.92%5
-44.44%51
-37.04%