clear
This commit is contained in:
14
node_modules/is-path-inside/index.js
generated
vendored
Normal file
14
node_modules/is-path-inside/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var path = require('path');
|
||||
var pathIsInside = require('path-is-inside');
|
||||
|
||||
module.exports = function (a, b) {
|
||||
a = path.resolve(a);
|
||||
b = path.resolve(b);
|
||||
|
||||
if (a === b) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return pathIsInside(a, b);
|
||||
};
|
||||
98
node_modules/is-path-inside/package.json
generated
vendored
Normal file
98
node_modules/is-path-inside/package.json
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "is-path-inside@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-path-inside",
|
||||
"name": "is-path-inside",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"D:\\web\\layui\\res\\layui\\node_modules\\is-path-in-cwd"
|
||||
]
|
||||
],
|
||||
"_from": "is-path-inside@>=1.0.0 <2.0.0",
|
||||
"_id": "is-path-inside@1.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/is-path-inside",
|
||||
"_npmUser": {
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
},
|
||||
"_npmVersion": "1.4.21",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "is-path-inside@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-path-inside",
|
||||
"name": "is-path-inside",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/is-path-in-cwd"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
|
||||
"_shasum": "fc06e5a1683fbda13de667aff717bbc10a48f37f",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-path-inside@^1.0.0",
|
||||
"_where": "D:\\web\\layui\\res\\layui\\node_modules\\is-path-in-cwd",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-path-inside/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"path-is-inside": "^1.0.1"
|
||||
},
|
||||
"description": "Check if a path is inside another path",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "fc06e5a1683fbda13de667aff717bbc10a48f37f",
|
||||
"tarball": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "b507035b66a539b7c12ba8b6b486377aa02aef9f",
|
||||
"homepage": "https://github.com/sindresorhus/is-path-inside",
|
||||
"keywords": [
|
||||
"path",
|
||||
"inside",
|
||||
"folder",
|
||||
"directory",
|
||||
"dir",
|
||||
"file",
|
||||
"resolve"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "is-path-inside",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-path-inside.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
31
node_modules/is-path-inside/readme.md
generated
vendored
Normal file
31
node_modules/is-path-inside/readme.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# is-path-inside [](https://travis-ci.org/sindresorhus/is-path-inside)
|
||||
|
||||
> Check if a path is inside another path
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save is-path-inside
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isPathInside = require('is-path-inside');
|
||||
|
||||
isPathInside('a/b', 'a/b/c');
|
||||
//=> true
|
||||
|
||||
isPathInside('x/y', 'a/b/c');
|
||||
//=> false
|
||||
|
||||
isPathInside('a/b/c', 'a/b/c');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user