first commit
This commit is contained in:
14
build/node_modules/is-path-global/index.js
generated
vendored
Normal file
14
build/node_modules/is-path-global/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var delimiter = require('path').delimiter;
|
||||
var isPathInside = require('is-path-inside');
|
||||
|
||||
module.exports = function (str) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return process.env.PATH.split(delimiter).some(function (path) {
|
||||
return isPathInside(str, path) || str === path;
|
||||
});
|
||||
};
|
||||
21
build/node_modules/is-path-global/license
generated
vendored
Normal file
21
build/node_modules/is-path-global/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com>
|
||||
|
||||
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.
|
||||
70
build/node_modules/is-path-global/package.json
generated
vendored
Normal file
70
build/node_modules/is-path-global/package.json
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "is-path-global@^1.0.0",
|
||||
"_id": "is-path-global@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-mzZiH0+D/BzYhtBx24QyZVVYfIM=",
|
||||
"_location": "/is-path-global",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-path-global@^1.0.0",
|
||||
"name": "is-path-global",
|
||||
"escapedName": "is-path-global",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/pngout-bin/bin-wrapper"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-path-global/-/is-path-global-1.0.2.tgz",
|
||||
"_shasum": "9b36621f4f83fc1cd886d071db84326555587c83",
|
||||
"_spec": "is-path-global@^1.0.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/pngout-bin/node_modules/bin-wrapper",
|
||||
"author": {
|
||||
"name": "Kevin Mårtensson",
|
||||
"email": "kevinmartensson@gmail.com",
|
||||
"url": "https://github.com/kevva"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/kevva/is-path-global/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"is-path-inside": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Check if a path is in PATH",
|
||||
"devDependencies": {
|
||||
"ava": "^0.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/kevva/is-path-global#readme",
|
||||
"keywords": [
|
||||
"check",
|
||||
"file",
|
||||
"filepath",
|
||||
"folder",
|
||||
"global",
|
||||
"in",
|
||||
"inside",
|
||||
"path",
|
||||
"pwd"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-path-global",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/kevva/is-path-global.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
||||
28
build/node_modules/is-path-global/readme.md
generated
vendored
Normal file
28
build/node_modules/is-path-global/readme.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# is-path-global [](https://travis-ci.org/kevva/is-path-global)
|
||||
|
||||
> Check if a path is in PATH
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save is-path-global
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isPathGlobal = require('is-path-global');
|
||||
|
||||
isPathGlobal('/bin/sh');
|
||||
//=> true
|
||||
|
||||
isPathGlobal('/home/sirjohndoe');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Kevin Mårtensson](https://github.com/kevva)
|
||||
Reference in New Issue
Block a user