{"_id":"@alexbinary/file-exists","_rev":"3-cf6fa9be2692bacce97e40cee7ace07e","name":"@alexbinary/file-exists","description":"Simple and consistent way to check if a file exists 🔎","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@alexbinary/file-exists","version":"1.0.2","description":"Simple and consistent way to check if a file exists 🔎","keywords":["fs","file","stat","open","exist","exists","access"],"homepage":"https://github.com/alexbinary/file-exists#readme","bugs":{"url":"https://github.com/alexbinary/file-exists/issues","email":"alexandre@bintz.io"},"license":"MIT","author":{"name":"Alexandre Bintz","email":"alexandre@bintz.io"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/alexbinary/file-exists.git"},"scripts":{"test":"istanbul cover _mocha","testw":"mocha -w","prepublish":"mocha"},"dependencies":{"@alexbinary/promisify":"^3.0.4"},"devDependencies":{"chai":"^3.5.0","istanbul":"^0.4.5","mocha":"^3.2.0"},"gitHead":"b9b3d2c080d21e98de40c40b06ced3996b1c82ff","_id":"@alexbinary/file-exists@1.0.2","_shasum":"6292d8684f15710c55ed1366f93e89e633283da1","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.1","_npmUser":{"name":"alexbinary","email":"alexandre@bintz.io"},"dist":{"shasum":"6292d8684f15710c55ed1366f93e89e633283da1","tarball":"https://registry.npmjs.org/@alexbinary/file-exists/-/file-exists-1.0.2.tgz","integrity":"sha512-e/ffyjWQV0B0b1JjEg/ZXcI0Rr2b37tI8psqt7T1k2K3kLhTKHG80CR7KDajHeL4/ThvSIfwNCq1I3YwYvScXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeytetsMRfiI8qpdwnnssBdiDT8epaj/CKbxiWU/2B8gIgPMnLjTpJNgVBMyG9SkdPACJcsgIZ1nCqYlCGCwO9cCw="}]},"maintainers":[{"name":"alexbinary","email":"alexandre@bintz.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/file-exists-1.0.2.tgz_1483008387363_0.46347834216430783"}}},"readme":"# file-exists\n\nSimple and consistent way to check if a file exists 🔎\n\n[![npm](https://img.shields.io/npm/v/@alexbinary/file-exists.svg)](https://www.npmjs.com/package/@alexbinary/file-exists)\n[![GitHub release](https://img.shields.io/github/release/alexbinary/file-exists.svg?label=\"github\")](https://github.com/alexbinary/file-exists/releases/latest)\n[![Build Status](https://travis-ci.org/alexbinary/file-exists.svg)](https://travis-ci.org/alexbinary/file-exists)\n[![dependencies Status](https://david-dm.org/alexbinary/file-exists/status.svg)](https://david-dm.org/alexbinary/file-exists)\n[![devDependencies Status](https://david-dm.org/alexbinary/file-exists/dev-status.svg)](https://david-dm.org/alexbinary/file-exists?type=dev)\n\nUses [@alexbinary/promisify](https://www.npmjs.com/package/@alexbinary/promisify) by [alexbinary](https://www.npmjs.com/~alexbinary)\n\n## Install\n\nInstall using npm or yarn :\n\n```bash\n$ npm install @alexbinary/file-exists\n# or\n$ yarn add @alexbinary/file-exists\n```\n\n## Usage\n\n```javascript\nlet fileexists = require('@alexbinary/file-exists')\n\n// callback\nfileexists('/path/to/file', (err, exists) => {\n  console.log('file exists: ' + (exists ? 'yes' : 'no'))\n})\n\n// promise\nfileexists('/path/to/file').then((exists) => {\n  console.log('file exists: ' + (exists ? 'yes' : 'no'))\n})\n\n// sync\nlet exists = fileexists.sync('/path/to/file')\nconsole.log('file exists: ' + (exists ? 'yes' : 'no'))\n```\n\n## Documentation\n\n```javascript\nlet fileexists = require('@alexbinary/file-exists')\n```\n\n### fileexists(filepath)\n\nChecks if a file exists at `filepath`.\n\nThis method supports both Promise and node callback style, and resolves with a `boolean` `true` if the file exists, `false` otherwise.\n\n### fileexists.sync(filepath)\n\nSynchronous version. Return `boolean` `true` if the file exists, `false` otherwise.\n\n## License\n\nMIT\n","maintainers":[{"name":"alexbinary","email":"alexandre@bintz.io"}],"time":{"modified":"2022-06-12T14:28:22.925Z","created":"2016-12-29T10:46:27.895Z","1.0.2":"2016-12-29T10:46:27.895Z"},"homepage":"https://github.com/alexbinary/file-exists#readme","keywords":["fs","file","stat","open","exist","exists","access"],"repository":{"type":"git","url":"git+https://github.com/alexbinary/file-exists.git"},"author":{"name":"Alexandre Bintz","email":"alexandre@bintz.io"},"bugs":{"url":"https://github.com/alexbinary/file-exists/issues","email":"alexandre@bintz.io"},"license":"MIT","readmeFilename":"README.md"}