{"_id":"is-file","_rev":"359083","name":"is-file","description":"Tests if a given path resolves to a file.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jsdevel","email":"js.developer.undefined@gmail.com"}],"time":{"modified":"2021-07-13T08:44:25.000Z","created":"2014-06-30T19:24:06.977Z","1.0.0":"2014-06-30T19:24:06.977Z"},"users":{"battlemidget":true,"rocket0191":true},"author":{"name":"Joseph Spencer"},"repository":{"type":"git","url":"https://github.com/jsdevel/node-is-file.git"},"versions":{"1.0.0":{"name":"is-file","main":"index.js","version":"1.0.0","description":"Tests if a given path resolves to a file.","author":{"name":"Joseph Spencer"},"scripts":{"pretest":"jshint index.js && jshint --config ./test/.jshintrc test","test":"istanbul cover _mocha && cat ./coverage/lcov.info | coveralls -v && rm -rf coverage"},"repository":{"type":"git","url":"https://github.com/jsdevel/node-is-file.git"},"keywords":[],"contributors":[],"license":"MIT","bugs":{"url":"https://github.com/jsdevel/node-is-file/issues"},"devDependencies":{"coveralls":"~2.10.0","should":"~4.0.4","mocha":"~1.20.1","jshint":"~2.5.1","istanbul":"~0.2.13"},"dependencies":{},"homepage":"https://github.com/jsdevel/node-is-file","_id":"is-file@1.0.0","dist":{"shasum":"28a44cfbd9d3db193045f22b65fce8edf9620596","size":1821,"noattachment":false,"key":"/is-file/-/is-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-file/download/is-file-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"jsdevel","email":"js.developer.undefined@gmail.com"},"maintainers":[{"name":"jsdevel","email":"js.developer.undefined@gmail.com"}],"directories":{},"publish_time":1404156246977,"_cnpm_publish_time":1404156246977,"_hasShrinkwrap":false}},"readme":"# node-is-file [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n> Tests if a given path resolves to a file.\n\n## Example\n\n### Async\n\n```javascript\nvar isFile = require('is-file');\nisFile(__filename, function(err, bool){\n  console.log(bool); // => true\n});\n```\n\n### Sync\n\n```javascript\nvar isFile = require('is-file');\nvar bool = isFile(__filename);\nconsole.log(bool); // => true\n```\n\nWith `.sync`:\n\n```javascript\nvar isFile = require('is-file');\nvar bool = isFile.sync(__filename);\nconsole.log(bool); // => true\n```\n\n##LICENSE\n``````\nThe MIT License (MIT)\n\nCopyright (c) 2014 Joseph Spencer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n``````\n\n[downloads-image]: http://img.shields.io/npm/dm/node-is-file.svg\n[npm-url]: https://npmjs.org/package/node-is-file\n[npm-image]: http://img.shields.io/npm/v/node-is-file.svg\n\n[travis-url]: https://travis-ci.org/jsdevel/node-is-file\n[travis-image]: http://img.shields.io/travis/jsdevel/node-is-file.svg\n\n[coveralls-url]: https://coveralls.io/r/jsdevel/node-is-file\n[coveralls-image]: http://img.shields.io/coveralls/jsdevel/node-is-file/master.svg\n","_attachments":{},"homepage":"https://github.com/jsdevel/node-is-file","bugs":{"url":"https://github.com/jsdevel/node-is-file/issues"},"license":"MIT"}