global-prefix
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -23,3 +23,5 @@ /*! | ||
// c:\node\node.exe --> prefix=c:\node\ | ||
prefix = path.dirname(process.execPath); | ||
prefix = process.env.APPDATA | ||
? path.join(process.env.APPDATA, 'npm') | ||
: path.dirname(process.execPath); | ||
} else { | ||
@@ -26,0 +28,0 @@ // /usr/local/bin/node --> prefix=/usr/local |
{ | ||
"name": "global-prefix", | ||
"description": "Get the npm global path prefix.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jonschlinkert/global-prefix", | ||
@@ -23,7 +23,7 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"is-windows": "^0.1.0" | ||
"is-windows": "^0.1.1" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.7", | ||
"mocha": "*" | ||
"mocha": "^2.4.5" | ||
}, | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"toc": false, | ||
"layout": "nil", | ||
"layout": "default", | ||
"tasks": [ | ||
@@ -45,0 +45,0 @@ "readme" |
@@ -1,2 +0,2 @@ | ||
# global-prefix [![NPM version](https://img.shields.io/npm/v/global-prefix.svg)](https://www.npmjs.com/package/global-prefix) [![Build Status](https://img.shields.io/travis/jonschlinkert/global-prefix.svg)](https://travis-ci.org/jonschlinkert/global-prefix) | ||
# global-prefix [![NPM version](https://img.shields.io/npm/v/global-prefix.svg?style=flat)](https://www.npmjs.com/package/global-prefix) [![NPM downloads](https://img.shields.io/npm/dm/global-prefix.svg?style=flat)](https://npmjs.org/package/global-prefix) [![Build Status](https://img.shields.io/travis/jonschlinkert/global-prefix.svg?style=flat)](https://travis-ci.org/jonschlinkert/global-prefix) | ||
@@ -13,3 +13,3 @@ > Get the npm global path prefix. | ||
This is the code used by npm internally to resolve the global prefix. | ||
This is based on the code used by npm internally to resolve the global prefix. | ||
@@ -25,5 +25,25 @@ ## Usage | ||
You might also be interested in these projects: | ||
* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules) | ||
* [global-paths](https://www.npmjs.com/package/global-paths): Returns an array of unique "global" directories based on the user's platform and environment. The… [more](https://www.npmjs.com/package/global-paths) | [homepage](https://github.com/jonschlinkert/global-paths) | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/global-prefix/issues/new). | ||
## Building docs | ||
Generate readme and API documentation with [verb](https://github.com/verbose/verb): | ||
```sh | ||
$ npm install verb && npm run docs | ||
``` | ||
Or, if [verb](https://github.com/verbose/verb) is installed globally: | ||
```sh | ||
$ verb | ||
``` | ||
## Running tests | ||
@@ -37,8 +57,4 @@ | ||
## Contributing | ||
## Author | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/global-prefix/issues/new). | ||
## Authors | ||
**Jon Schlinkert** | ||
@@ -51,4 +67,3 @@ | ||
Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert) | ||
[Copyright (c) npm, Inc. and Contributors](https://github.com/npm/npm/blob/master/LICENSE) | ||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT license](https://github.com/jonschlinkert/global-prefix/blob/master/LICENSE). | ||
@@ -58,2 +73,2 @@ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 13, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 07, 2016._ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
5227
30
69
7
Updatedis-windows@^0.1.1