aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-path-in-cwd
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-path-in-cwd')
-rw-r--r--node_modules/is-path-in-cwd/index.js6
-rw-r--r--node_modules/is-path-in-cwd/package.json38
-rw-r--r--node_modules/is-path-in-cwd/readme.md28
3 files changed, 72 insertions, 0 deletions
diff --git a/node_modules/is-path-in-cwd/index.js b/node_modules/is-path-in-cwd/index.js
new file mode 100644
index 000000000..75611656a
--- /dev/null
+++ b/node_modules/is-path-in-cwd/index.js
@@ -0,0 +1,6 @@
+'use strict';
+var isPathInside = require('is-path-inside');
+
+module.exports = function (str) {
+ return isPathInside(str, process.cwd());
+};
diff --git a/node_modules/is-path-in-cwd/package.json b/node_modules/is-path-in-cwd/package.json
new file mode 100644
index 000000000..422d0206c
--- /dev/null
+++ b/node_modules/is-path-in-cwd/package.json
@@ -0,0 +1,38 @@
+{
+ "name": "is-path-in-cwd",
+ "version": "1.0.0",
+ "description": "Check if a path is in the current working directory",
+ "license": "MIT",
+ "repository": "sindresorhus/is-path-in-cwd",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "files": [
+ "index.js"
+ ],
+ "keywords": [
+ "path",
+ "cwd",
+ "pwd",
+ "check",
+ "filepath",
+ "file",
+ "folder",
+ "in",
+ "inside"
+ ],
+ "dependencies": {
+ "is-path-inside": "^1.0.0"
+ },
+ "devDependencies": {
+ "mocha": "*"
+ }
+}
diff --git a/node_modules/is-path-in-cwd/readme.md b/node_modules/is-path-in-cwd/readme.md
new file mode 100644
index 000000000..4e4f3a883
--- /dev/null
+++ b/node_modules/is-path-in-cwd/readme.md
@@ -0,0 +1,28 @@
+# is-path-in-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-in-cwd.svg?branch=master)](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)