diff options
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/is-npm')
3 files changed, 128 insertions, 0 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-npm/index.js b/deps/npm/node_modules/update-notifier/node_modules/is-npm/index.js new file mode 100644 index 0000000000..b5f3c27ab3 --- /dev/null +++ b/deps/npm/node_modules/update-notifier/node_modules/is-npm/index.js @@ -0,0 +1,4 @@ +'use strict'; +module.exports = 'npm_config_username' in process.env || + 'npm_package_name' in process.env || + 'npm_config_heading' in process.env; diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-npm/package.json b/deps/npm/node_modules/update-notifier/node_modules/is-npm/package.json new file mode 100644 index 0000000000..394439ce92 --- /dev/null +++ b/deps/npm/node_modules/update-notifier/node_modules/is-npm/package.json @@ -0,0 +1,94 @@ +{ + "_args": [ + [ + { + "raw": "is-npm@^1.0.0", + "scope": null, + "escapedName": "is-npm", + "name": "is-npm", + "rawSpec": "^1.0.0", + "spec": ">=1.0.0 <2.0.0", + "type": "range" + }, + "/Users/ceej/code/Tools/npm/node_modules/update-notifier" + ] + ], + "_from": "is-npm@>=1.0.0 <2.0.0", + "_id": "is-npm@1.0.0", + "_inCache": true, + "_location": "/update-notifier/is-npm", + "_npmUser": { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + "_npmVersion": "1.4.9", + "_phantomChildren": {}, + "_requested": { + "raw": "is-npm@^1.0.0", + "scope": null, + "escapedName": "is-npm", + "name": "is-npm", + "rawSpec": "^1.0.0", + "spec": ">=1.0.0 <2.0.0", + "type": "range" + }, + "_requiredBy": [ + "/update-notifier" + ], + "_resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "_shasum": "f2fb63a65e4905b406c86072765a1a4dc793b9f4", + "_shrinkwrap": null, + "_spec": "is-npm@^1.0.0", + "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "http://sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/is-npm/issues" + }, + "dependencies": {}, + "description": "Check if your code is running as an npm script", + "devDependencies": { + "ava": "0.0.3" + }, + "directories": {}, + "dist": { + "shasum": "f2fb63a65e4905b406c86072765a1a4dc793b9f4", + "tarball": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/is-npm", + "keywords": [ + "npm", + "is", + "check", + "detect", + "env", + "environment" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + } + ], + "name": "is-npm", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/sindresorhus/is-npm.git" + }, + "scripts": { + "test": "node test.js" + }, + "version": "1.0.0" +} diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-npm/readme.md b/deps/npm/node_modules/update-notifier/node_modules/is-npm/readme.md new file mode 100644 index 0000000000..84833ec65b --- /dev/null +++ b/deps/npm/node_modules/update-notifier/node_modules/is-npm/readme.md @@ -0,0 +1,30 @@ +# is-npm [![Build Status](https://travis-ci.org/sindresorhus/is-npm.svg?branch=master)](https://travis-ci.org/sindresorhus/is-npm) + +> Check if your code is running as an [npm script](https://www.npmjs.org/doc/misc/npm-scripts.html) + + +## Install + +```sh +$ npm install --save is-npm +``` + + +## Usage + +```js +var isNpm = require('is-npm'); +console.log(isNpm); +``` + +```sh +$ node foo.js +#=> false +$ npm run foo +#=> true +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) |