get-installed-path
Advanced tools
Comparing version 1.0.1 to 1.0.2
## v1.0.2 / May 6, 2015 | ||
- Release v1.0.2 / npm@v1.0.2 | ||
- standard style for the example usage | ||
- plus some tweaks | ||
## v1.0.1 / May 6, 2015 | ||
@@ -4,0 +9,0 @@ - Release v1.0.1 / npm@v1.0.1 |
{ | ||
"name": "get-installed-path", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Get the installation path of the given package if it is installed globally or locally.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -7,3 +7,3 @@ ## [![npm][npmjs-img]][npmjs-url] [![standard style][standard-img]][standard-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url] | ||
``` | ||
npm i --save get-installed-path | ||
npm i get-installed-path --save | ||
npm test | ||
@@ -17,9 +17,9 @@ ``` | ||
```js | ||
var getInstalledPath = require('get-installed-path'); | ||
var getInstalledPath = require('get-installed-path') | ||
getInstalledPath('npm'); | ||
getInstalledPath('npm') | ||
//=> '/home/charlike/path/to/global/modules/node_modules/npm' | ||
getInstalledPath('detect-installed', true); | ||
//=> '/home/path/to/get-installed-path/node_modules/detect-installed' | ||
getInstalledPath('detect-installed', true) | ||
//=> '/home/path/to/cwd/node_modules/detect-installed' | ||
``` | ||
@@ -34,3 +34,3 @@ > give `true` as second argument and it will check in local modules | ||
- [is-match](https://github.com/jonschlinkert/is-match): Create a matching function from a glob pattern, regex, string,… [more](https://github.com/jonschlinkert/is-match) | ||
- [npm-related](https://github.com/tunnckoCore/npm-related#readme): Thin wrapper on top of `helper-related` for generating a list… [more](https://github.com/tunnckoCore/npm-related#readme) | ||
- [npm-related](https://github.com/tunnckoCore/npm-related): Thin wrapper on top of `helper-related` for generating a list… [more](https://github.com/tunnckoCore/npm-related) | ||
- [npm-pkgs-filter](https://github.com/tunnckoCore/npm-pkgs-filter): Filter the list of user npm packages from the [npmjs.com](https://npmjs.com)… [more](https://github.com/tunnckoCore/npm-pkgs-filter) | ||
@@ -37,0 +37,0 @@ |
10053