mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
update
This commit is contained in:
6
node_modules/is-path-cwd/index.js
generated
vendored
Normal file
6
node_modules/is-path-cwd/index.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
var path = require('path');
|
||||
|
||||
module.exports = function (str) {
|
||||
return path.resolve(str) === path.resolve(process.cwd());
|
||||
};
|
68
node_modules/is-path-cwd/package.json
generated
vendored
Normal file
68
node_modules/is-path-cwd/package.json
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-path-cwd@1.0.0",
|
||||
"/Users/tatiana/selfdefined"
|
||||
]
|
||||
],
|
||||
"_from": "is-path-cwd@1.0.0",
|
||||
"_id": "is-path-cwd@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=",
|
||||
"_location": "/is-path-cwd",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-path-cwd@1.0.0",
|
||||
"name": "is-path-cwd",
|
||||
"escapedName": "is-path-cwd",
|
||||
"rawSpec": "1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/del"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
|
||||
"_spec": "1.0.0",
|
||||
"_where": "/Users/tatiana/selfdefined",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-path-cwd/issues"
|
||||
},
|
||||
"description": "Check if a path is CWD",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-path-cwd#readme",
|
||||
"keywords": [
|
||||
"path",
|
||||
"cwd",
|
||||
"pwd",
|
||||
"check",
|
||||
"filepath",
|
||||
"file",
|
||||
"folder"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-path-cwd",
|
||||
"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
28
node_modules/is-path-cwd/readme.md
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# is-path-cwd [](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)
|
Reference in New Issue
Block a user