110 lines
3.9 KiB
JSON
110 lines
3.9 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "path-exists@^3.0.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "path-exists",
|
||
|
"name": "path-exists",
|
||
|
"rawSpec": "^3.0.0",
|
||
|
"spec": ">=3.0.0 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native-scripts"
|
||
|
]
|
||
|
],
|
||
|
"_from": "path-exists@>=3.0.0 <4.0.0",
|
||
|
"_id": "path-exists@3.0.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/path-exists",
|
||
|
"_nodeVersion": "4.4.2",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-16-east.internal.npmjs.com",
|
||
|
"tmp": "tmp/path-exists-3.0.0.tgz_1462103091696_0.5805528531782329"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "sindresorhus",
|
||
|
"email": "sindresorhus@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "3.8.9",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "path-exists@^3.0.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "path-exists",
|
||
|
"name": "path-exists",
|
||
|
"rawSpec": "^3.0.0",
|
||
|
"spec": ">=3.0.0 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/react-native-scripts"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||
|
"_shasum": "ce0ebeaa5f78cb18925ea7d810d7b59b010fd515",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "path-exists@^3.0.0",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native-scripts",
|
||
|
"author": {
|
||
|
"name": "Sindre Sorhus",
|
||
|
"email": "sindresorhus@gmail.com",
|
||
|
"url": "sindresorhus.com"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/sindresorhus/path-exists/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "Check if a path exists",
|
||
|
"devDependencies": {
|
||
|
"ava": "*",
|
||
|
"xo": "*"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "ce0ebeaa5f78cb18925ea7d810d7b59b010fd515",
|
||
|
"tarball": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=4"
|
||
|
},
|
||
|
"files": [
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "4696c60a8b2b9ac61902aa9eab7cb326ab6005c8",
|
||
|
"homepage": "https://github.com/sindresorhus/path-exists#readme",
|
||
|
"keywords": [
|
||
|
"path",
|
||
|
"exists",
|
||
|
"exist",
|
||
|
"file",
|
||
|
"filepath",
|
||
|
"fs",
|
||
|
"filesystem",
|
||
|
"file-system",
|
||
|
"access",
|
||
|
"stat"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "sindresorhus",
|
||
|
"email": "sindresorhus@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "path-exists",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists)\n\n> Check if a path exists\n\nBecause [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.\n\nNever use this before handling a file though:\n\n> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.\n\n\n## Install\n\n```\n$ npm install --save path-exists\n```\n\n\n## Usage\n\n```js\n// foo.js\nconst pathExists = require('path-exists');\n\npathExists('foo.js').then(exists => {\n\tconsole.log(exists);\n\t//=> true\n});\n```\n\n\n## API\n\n### pathExists(path)\n\nReturns a promise for a boolean of whether the path exists.\n\n### pathExists.sync(path)\n\nReturns a boolean of whether the path exists.\n\n\n## Related\n\n- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
|
||
|
"readmeFilename": "readme.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/sindresorhus/path-exists.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "xo && ava"
|
||
|
},
|
||
|
"version": "3.0.0",
|
||
|
"xo": {
|
||
|
"esnext": true
|
||
|
}
|
||
|
}
|