summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside')
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/index.js14
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/package.json68
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md31
3 files changed, 113 insertions, 0 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/index.js b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/index.js
new file mode 100644
index 0000000000..0a4d2fd1e5
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/index.js
@@ -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);
+};
diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/package.json b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/package.json
new file mode 100644
index 0000000000..c56279c7cb
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/package.json
@@ -0,0 +1,68 @@
+{
+ "_from": "is-path-inside@^1.0.0",
+ "_id": "is-path-inside@1.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=",
+ "_location": "/update-notifier/is-installed-globally/is-path-inside",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "is-path-inside@^1.0.0",
+ "name": "is-path-inside",
+ "escapedName": "is-path-inside",
+ "rawSpec": "^1.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
+ },
+ "_requiredBy": [
+ "/update-notifier/is-installed-globally"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
+ "_shasum": "fc06e5a1683fbda13de667aff717bbc10a48f37f",
+ "_spec": "is-path-inside@^1.0.0",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/is-installed-globally",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/is-path-inside/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "path-is-inside": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Check if a path is inside another path",
+ "devDependencies": {
+ "mocha": "*"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/sindresorhus/is-path-inside#readme",
+ "keywords": [
+ "path",
+ "inside",
+ "folder",
+ "directory",
+ "dir",
+ "file",
+ "resolve"
+ ],
+ "license": "MIT",
+ "name": "is-path-inside",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/is-path-inside.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "version": "1.0.0"
+}
diff --git a/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md
new file mode 100644
index 0000000000..0e4eb74f75
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md
@@ -0,0 +1,31 @@
+# is-path-inside [![Build Status](https://travis-ci.org/sindresorhus/is-path-inside.svg?branch=master)](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)