Comparing version 3.0.1 to 4.0.0
@@ -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" | ||
] | ||
} |
[![view on npm](http://img.shields.io/npm/v/walk-back.svg)](https://www.npmjs.org/package/walk-back) | ||
[![npm module downloads](http://img.shields.io/npm/dt/walk-back.svg)](https://www.npmjs.org/package/walk-back) | ||
[![Build Status](https://travis-ci.org/75lb/walk-back.svg?branch=master)](https://travis-ci.org/75lb/walk-back) | ||
[![Dependency Status](https://david-dm.org/75lb/walk-back.svg)](https://david-dm.org/75lb/walk-back) | ||
[![Dependency Status](https://badgen.net/david/dep/75lb/walk-back)](https://david-dm.org/75lb/walk-back) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard) | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
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
5798
5
51