summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/is-path-cwd
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/is-path-cwd')
-rw-r--r--tools/node_modules/eslint/node_modules/is-path-cwd/index.js6
-rw-r--r--tools/node_modules/eslint/node_modules/is-path-cwd/package.json65
-rw-r--r--tools/node_modules/eslint/node_modules/is-path-cwd/readme.md28
3 files changed, 99 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/is-path-cwd/index.js b/tools/node_modules/eslint/node_modules/is-path-cwd/index.js
new file mode 100644
index 0000000000..24b6fdea37
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-path-cwd/index.js
@@ -0,0 +1,6 @@
+'use strict';
+var path = require('path');
+
+module.exports = function (str) {
+ return path.resolve(str) === path.resolve(process.cwd());
+};
diff --git a/tools/node_modules/eslint/node_modules/is-path-cwd/package.json b/tools/node_modules/eslint/node_modules/is-path-cwd/package.json
new file mode 100644
index 0000000000..b68f13924d
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-path-cwd/package.json
@@ -0,0 +1,65 @@
+{
+ "_from": "is-path-cwd@^1.0.0",
+ "_id": "is-path-cwd@1.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=",
+ "_location": "/eslint/is-path-cwd",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "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": [
+ "/eslint/del"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
+ "_shasum": "d225ec23132e89edd38fda767472e62e65f1106d",
+ "_spec": "is-path-cwd@^1.0.0",
+ "_where": "/Users/cjihrig/iojs/node/tools/eslint-tmp/node_modules/eslint/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"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "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"
+}
diff --git a/tools/node_modules/eslint/node_modules/is-path-cwd/readme.md b/tools/node_modules/eslint/node_modules/is-path-cwd/readme.md
new file mode 100644
index 0000000000..2d9d65f989
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-path-cwd/readme.md
@@ -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)