This commit is contained in:
sentsin
2017-08-21 08:50:25 +08:00
parent 06c11ba9cd
commit 7feaa4eca0
1899 changed files with 181363 additions and 22513 deletions

6
node_modules/is-path-cwd/index.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
'use strict';
var path = require('path');
module.exports = function (str) {
return path.resolve(str) === path.resolve(process.cwd());
};

96
node_modules/is-path-cwd/package.json generated vendored Normal file
View File

@@ -0,0 +1,96 @@
{
"_args": [
[
{
"raw": "is-path-cwd@^1.0.0",
"scope": null,
"escapedName": "is-path-cwd",
"name": "is-path-cwd",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"D:\\web\\layui\\res\\layui\\node_modules\\del"
]
],
"_from": "is-path-cwd@>=1.0.0 <2.0.0",
"_id": "is-path-cwd@1.0.0",
"_inCache": true,
"_location": "/is-path-cwd",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "1.4.21",
"_phantomChildren": {},
"_requested": {
"raw": "is-path-cwd@^1.0.0",
"scope": null,
"escapedName": "is-path-cwd",
"name": "is-path-cwd",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/del"
],
"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
"_shasum": "d225ec23132e89edd38fda767472e62e65f1106d",
"_shrinkwrap": null,
"_spec": "is-path-cwd@^1.0.0",
"_where": "D:\\web\\layui\\res\\layui\\node_modules\\del",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/is-path-cwd/issues"
},
"dependencies": {},
"description": "Check if a path is CWD",
"devDependencies": {
"mocha": "*"
},
"directories": {},
"dist": {
"shasum": "d225ec23132e89edd38fda767472e62e65f1106d",
"tarball": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "f71d4ecaa43bfe23c9cb35af6bf31e6b5b3f04eb",
"homepage": "https://github.com/sindresorhus/is-path-cwd",
"keywords": [
"path",
"cwd",
"pwd",
"check",
"filepath",
"file",
"folder"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "is-path-cwd",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/is-path-cwd.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

28
node_modules/is-path-cwd/readme.md generated vendored Normal file
View File

@@ -0,0 +1,28 @@
# is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
> Check if a path is [CWD](http://en.wikipedia.org/wiki/Working_directory)
## Install
```sh
$ npm install --save is-path-cwd
```
## Usage
```js
var isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)