Comparing version 2.0.0 to 3.0.0
102
package.json
{ | ||
"name": "pkg-dir", | ||
"version": "2.0.0", | ||
"description": "Find the root directory of a Node.js project or npm package", | ||
"license": "MIT", | ||
"repository": "sindresorhus/pkg-dir", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"package", | ||
"json", | ||
"root", | ||
"npm", | ||
"entry", | ||
"find", | ||
"up", | ||
"find-up", | ||
"findup", | ||
"look-up", | ||
"look", | ||
"file", | ||
"search", | ||
"match", | ||
"resolve", | ||
"parent", | ||
"parents", | ||
"folder", | ||
"directory", | ||
"dir", | ||
"walk", | ||
"walking", | ||
"path" | ||
], | ||
"dependencies": { | ||
"find-up": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "pkg-dir", | ||
"version": "3.0.0", | ||
"description": "Find the root directory of a Node.js project or npm package", | ||
"license": "MIT", | ||
"repository": "sindresorhus/pkg-dir", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"package", | ||
"json", | ||
"root", | ||
"npm", | ||
"entry", | ||
"find", | ||
"up", | ||
"find-up", | ||
"findup", | ||
"look-up", | ||
"look", | ||
"file", | ||
"search", | ||
"match", | ||
"resolve", | ||
"parent", | ||
"parents", | ||
"folder", | ||
"directory", | ||
"dir", | ||
"walk", | ||
"walking", | ||
"path" | ||
], | ||
"dependencies": { | ||
"find-up": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # pkg-dir [![Build Status](https://travis-ci.org/sindresorhus/pkg-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/pkg-dir) | ||
``` | ||
$ npm install --save pkg-dir | ||
$ npm install pkg-dir | ||
``` | ||
@@ -31,6 +31,8 @@ | ||
pkgDir(__dirname).then(rootDir => { | ||
(async () => { | ||
const rootDir = await pkgDir(__dirname); | ||
console.log(rootDir); | ||
//=> '/Users/sindresorhus/foo' | ||
}); | ||
})(); | ||
``` | ||
@@ -37,0 +39,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
67
3421
+ Addedfind-up@3.0.0(transitive)
+ Addedlocate-path@3.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@3.0.0(transitive)
+ Addedp-try@2.2.0(transitive)
- Removedfind-up@2.1.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
Updatedfind-up@^3.0.0