{"_id":"file-exists-dazinatorfork","_rev":"1-a971ab078856c79f32ae470cca30d975","name":"file-exists-dazinatorfork","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"file-exists-dazinatorfork","version":"1.0.2","description":"Check if filepath exists and is a file. Note this is a fork of file-exists dpenedency with some ammendments.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | tap-format-spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/dazinator/file-exists.git"},"keywords":["file","exists","fs","isfile","is-file"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/dazinator/file-exists/issues"},"engines":{"node":">=6.0.0"},"homepage":"https://github.com/dazinator/file-exists","devDependencies":{"@tap-format/spec":"^0.2.0","async":"^2.1.4","mkdirp":"0.5.1","rmdir":"1.2.0","tape":"4.6.3","memfs":"^2.14.1"},"gitHead":"570ffd644f8939c5eb24cdc1cf09a7f5bde16ec0","_id":"file-exists-dazinatorfork@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"dazinator","email":"darrell.tunnell@googlemail.com"},"dist":{"integrity":"sha512-r70c72ln2YHzQINNfxDp02hAhbGkt1HffZ+Du8oetWDLjDtFja/Lm10lUaSh9e+wD+7VDvPee0b0C9SAy8pWZg==","shasum":"cd8d0d85f63e39dc81eceb0b687c44a2cca95c47","tarball":"https://registry.npmjs.org/file-exists-dazinatorfork/-/file-exists-dazinatorfork-1.0.2.tgz","fileCount":7,"unpackedSize":22565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjBykCRA9TVsSAnZWagAAEn4P/jyz1jhrvjJvis6THt4L\nPjTl0AsCKz6Yb3vtGPZlE0UBMHykZNzvnhzakxhA69G2RIeXksKh2KWhCcTK\nXYOGnBb83x6Q9GDLCriQk8LXaSXJOEp7hlAp25KlqnKeyEJ9EgTAu26wm++9\nhCcGVfNSlXdJB7xOf4u0MBrdfVKa+FWC42imi7dVHIMdn1O6RIfwsiJ8QtjF\ntiRMZwumb9PTPiWeJkd69aDjPdxH0ONLaqiIjxuJkMPC/6ieVz2AEvUsndSm\nhpZJ6L4DbSVaLciox6RV29sp5FYpDLfeEIPP2hWmov0pDKgP+v4EZ8YJOeu+\neRIJfQEB/kV5TsqCtrMGi18GgkqEOmMzKJm9IFaDQmVOLBIUU2daRxR9QuWa\nQpXX4QdbdUBta/aOk3+Pz7mfP6sU5peJpZRZEVgm3Sm6wqfXfJ57i+heCHL3\nqpAcAf17wAr/rD9J6/846IQe+U/OwVKM+gEzGOB6fw6SAhk1STmzPHdcCN1w\nrnRZ2hpJCsi96EShz8uWJhJyYS/o7JrmLKdsm4XHFVsvMLXiP+hyxkWb5AMg\nhe/maBpMYMC4NJasS979TwK+EKr9PDGuCXcCw8jBQHrXym/D41dF9N1rZF9I\nxtQMf9OS40PCblAhyrT2anMRFVWrxuZxsAMCTRG9yJN7TX2WKHzXsBFFOGUt\n/gCV\r\n=Epq3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlfgiEppUddC1qOf0qfsoSYgWQk/28llCjAXU44hSLPgIhAP3mBAY4LV8jEalON7okm8ZH3i8YO7u+tQ+GQ3NGtNtS"}]},"maintainers":[{"name":"dazinator","email":"darrell.tunnell@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists-dazinatorfork_1.0.2_1552686243960_0.9396209704956093"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-15T21:44:03.960Z","1.0.2":"2019-03-15T21:44:04.064Z","modified":"2022-05-02T09:22:48.596Z"},"maintainers":[{"name":"dazinator","email":"darrell.tunnell@googlemail.com"}],"description":"Check if filepath exists and is a file. Note this is a fork of file-exists dpenedency with some ammendments.","homepage":"https://github.com/dazinator/file-exists","keywords":["file","exists","fs","isfile","is-file"],"repository":{"type":"git","url":"git+ssh://git@github.com/dazinator/file-exists.git"},"author":{"name":"Scott Corgan"},"bugs":{"url":"https://github.com/dazinator/file-exists/issues"},"license":"MIT","readme":"# file-exists\n\nCheck if filepath exists and is a file. Returns false for directories.\n\n_(Requires node >=6.0.0)_\n\n## Install\n\n```\nnpm install file-exists --save\n```\n\n## Usage\n\n```js\nconst fileExists = require('file-exists');\n\nfileExists('/index.html', (err, exists) => console.log(exists)) // OUTPUTS: true or false\n\nfileExists('/index.html').then(exists => {\n  console.log(exists) // OUTPUTS: true or false\n})\n\nconst exists = await fileExists('/index.html')\n\nconsole.log(fileExists.sync('/index.html')) // OUTPUTS: true or false\n```\n\n### Options\n\n#### fileExists(filepath[, options, callback])\n\n* `filepath` - the path to the file to check if it exists\n* `options` - an object of options\n  * `root` - the root directory to look in (or cwd)\n* `callback(err, exists)` - gets called when checking is done\n\n#### fileExists.sync(filepath[, options])\n* `filepath` - the path to the file to check if it exists\n* `options` - an object of options\n  * `root` - the root directory to look in (or cwd)\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","readmeFilename":"README.md"}