{"name":"is-image","version":"1.0.0","description":"Check if a filepath is an image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-image"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["ext","extensions","extension","file","path","check","detect","is","image","img","photo","pic","picture","jpg","jpeg","png"],"dependencies":{"image-extensions":"^1.0.1"},"devDependencies":{"ava":"0.0.4"},"gitHead":"669ce4dc71966f59d00a5856a6f86ee69241c26e","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image","_id":"is-image@1.0.0","_shasum":"71049c70c0b1082f5ee9f853943c081cf98bd7bb","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"71049c70c0b1082f5ee9f853943c081cf98bd7bb","tarball":"http://registry-npm.ywwl.com/is-image/download/is-image-1.0.0.tgz","integrity":"sha512-qAujK+9ut3lWYs4hn+fUZ/EPgHDzMtk8ZNz57gQIn94hUaDQ5gn1yTrv4EJOAbKle/kiJsSkxz+bP9N2Z96K3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1q7o2Z5rB2k6RNyo36ytBap4QYmbtZD4D6C6UQFA4CAiEAp7BQ7D5ZPg7tS1vmHFqJB4ovz3dClzAtK+AtpsuGIDE="}],"size":1577,"noattachment":false,"key":"/is-image/-/is-image-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# is-image\n\n> Check if a file path is an image\n\nIt just checks the extension. Use [`image-type`](https://github.com/sindresorhus/image-type) if you want to check the actual file.\n\n## Install\n\n```sh\nnpm install is-image\n```\n\n## Usage\n\n```js\nimport isImage from 'is-image';\n\nisImage('source/unicorn.png');\n//=> true\n\nisImage('source/unicorn.txt');\n//=> false\n```\n\n## Related\n\n- [image-extensions](https://github.com/arthurvr/image-extensions) - List of image extensions\n- [image-type](https://github.com/sindresorhus/image-type) - Detect the image type of a Buffer/Uint8Array\n- [is-text-path](https://github.com/sindresorhus/is-text-path) - Check if a filepath is a text file\n- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file\n","publish_time":1431889044656,"_cnpm_publish_time":1431889044656,"dist-tags":{"latest":"4.0.0"}}