aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-npm
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-28 00:38:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-28 00:40:43 +0200
commit7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (patch)
tree6de9a1aebd150a23b7f8c273ec657a5d0a18fe3e /node_modules/is-npm
parent963b7a41feb29cc4be090a2446bdfe0c1f1bcd81 (diff)
downloadwallet-core-7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027.tar.xz
add linting (and some initial fixes)
Diffstat (limited to 'node_modules/is-npm')
-rw-r--r--node_modules/is-npm/index.js4
-rw-r--r--node_modules/is-npm/package.json32
-rw-r--r--node_modules/is-npm/readme.md30
3 files changed, 66 insertions, 0 deletions
diff --git a/node_modules/is-npm/index.js b/node_modules/is-npm/index.js
new file mode 100644
index 000000000..b5f3c27ab
--- /dev/null
+++ b/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/node_modules/is-npm/package.json b/node_modules/is-npm/package.json
new file mode 100644
index 000000000..5c6f3800a
--- /dev/null
+++ b/node_modules/is-npm/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "is-npm",
+ "version": "1.0.0",
+ "description": "Check if your code is running as an npm script",
+ "license": "MIT",
+ "repository": "sindresorhus/is-npm",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "node test.js"
+ },
+ "files": [
+ "index.js"
+ ],
+ "keywords": [
+ "npm",
+ "is",
+ "check",
+ "detect",
+ "env",
+ "environment"
+ ],
+ "devDependencies": {
+ "ava": "0.0.3"
+ }
+}
diff --git a/node_modules/is-npm/readme.md b/node_modules/is-npm/readme.md
new file mode 100644
index 000000000..84833ec65
--- /dev/null
+++ b/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)