aboutsummaryrefslogtreecommitdiff
path: root/node_modules/detect-node
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/detect-node')
-rw-r--r--node_modules/detect-node/LICENSE21
-rw-r--r--node_modules/detect-node/Readme.md30
-rw-r--r--node_modules/detect-node/browser.js2
-rw-r--r--node_modules/detect-node/index.js2
-rw-r--r--node_modules/detect-node/package.json51
5 files changed, 0 insertions, 106 deletions
diff --git a/node_modules/detect-node/LICENSE b/node_modules/detect-node/LICENSE
deleted file mode 100644
index 3113356..0000000
--- a/node_modules/detect-node/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 Ilya Kantor
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/detect-node/Readme.md b/node_modules/detect-node/Readme.md
deleted file mode 100644
index 73c57b9..0000000
--- a/node_modules/detect-node/Readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-### Install
-
-```shell
-npm install --save detect-node
-```
-
-### Usage:
-
-```js
-var isNode = require('detect-node');
-
-if (isNode) {
- console.log("Running under Node.JS");
-} else {
- alert("Hello from browser (or whatever not-a-node env)");
-}
-```
-
-The check is performed as:
-```js
-module.exports = false;
-
-// Only Node.JS has a process variable that is of [[Class]] process
-try {
- module.exports = Object.prototype.toString.call(global.process) === '[object process]'
-} catch(e) {}
-
-```
-
-Thanks to Ingvar Stepanyan for the initial idea. This check is both **the most reliable I could find** and it does not use `process` env directly, which would cause browserify to include it into the build.
diff --git a/node_modules/detect-node/browser.js b/node_modules/detect-node/browser.js
deleted file mode 100644
index 4172696..0000000
--- a/node_modules/detect-node/browser.js
+++ /dev/null
@@ -1,2 +0,0 @@
-module.exports = false;
-
diff --git a/node_modules/detect-node/index.js b/node_modules/detect-node/index.js
deleted file mode 100644
index 229949e..0000000
--- a/node_modules/detect-node/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// Only Node.JS has a process variable that is of [[Class]] process
-module.exports = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
diff --git a/node_modules/detect-node/package.json b/node_modules/detect-node/package.json
deleted file mode 100644
index 61c64c9..0000000
--- a/node_modules/detect-node/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "_from": "detect-node@^2.0.4",
- "_id": "[email protected]",
- "_inBundle": false,
- "_integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
- "_location": "/detect-node",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "detect-node@^2.0.4",
- "name": "detect-node",
- "escapedName": "detect-node",
- "rawSpec": "^2.0.4",
- "saveSpec": null,
- "fetchSpec": "^2.0.4"
- },
- "_requiredBy": [
- "/roarr"
- ],
- "_resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
- "_shasum": "014ee8f8f669c5c58023da64b8179c083a28c46c",
- "_spec": "detect-node@^2.0.4",
- "_where": "/Users/lucifer/Documents/styx/node_modules/roarr",
- "author": {
- "name": "Ilya Kantor"
- },
- "browser": "browser.js",
- "bugs": {
- "url": "https://github.com/iliakan/detect-node/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Detect Node.JS (as opposite to browser environment) (reliable)",
- "homepage": "https://github.com/iliakan/detect-node",
- "keywords": [
- "detect",
- "node"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "detect-node",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iliakan/detect-node.git"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "version": "2.0.4"
-}