forked from enviPath/enviPy
Current Dev State
This commit is contained in:
6
static/js/ketcher2/node_modules/is-path-in-cwd/index.js
generated
vendored
Normal file
6
static/js/ketcher2/node_modules/is-path-in-cwd/index.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
var isPathInside = require('is-path-inside');
|
||||
|
||||
module.exports = function (str) {
|
||||
return isPathInside(str, process.cwd());
|
||||
};
|
||||
70
static/js/ketcher2/node_modules/is-path-in-cwd/package.json
generated
vendored
Normal file
70
static/js/ketcher2/node_modules/is-path-in-cwd/package.json
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "is-path-in-cwd@^1.0.0",
|
||||
"_id": "is-path-in-cwd@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=",
|
||||
"_location": "/is-path-in-cwd",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-path-in-cwd@^1.0.0",
|
||||
"name": "is-path-in-cwd",
|
||||
"escapedName": "is-path-in-cwd",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/del"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz",
|
||||
"_shasum": "6477582b8214d602346094567003be8a9eac04dc",
|
||||
"_spec": "is-path-in-cwd@^1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/del",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-path-in-cwd/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"is-path-inside": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Check if a path is in the current working directory",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-path-in-cwd#readme",
|
||||
"keywords": [
|
||||
"path",
|
||||
"cwd",
|
||||
"pwd",
|
||||
"check",
|
||||
"filepath",
|
||||
"file",
|
||||
"folder",
|
||||
"in",
|
||||
"inside"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-path-in-cwd",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-path-in-cwd.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
28
static/js/ketcher2/node_modules/is-path-in-cwd/readme.md
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/is-path-in-cwd/readme.md
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# is-path-in-cwd [](https://travis-ci.org/sindresorhus/is-path-in-cwd)
|
||||
|
||||
> Check if a path is in the [current working directory](http://en.wikipedia.org/wiki/Working_directory)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save is-path-in-cwd
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isPathInCwd = require('is-path-in-cwd');
|
||||
|
||||
isPathInCwd('unicorn');
|
||||
//=> true
|
||||
|
||||
isPathInCwd('../rainbow');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user