{"name":"is-image","version":"2.0.0","description":"Check if a filepath is an image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-image.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"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":"*","xo":"*"},"gitHead":"c72adcdc213f9f5d44851c93081044d39336708f","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image#readme","_id":"is-image@2.0.0","_shasum":"454c9569578de31869371fbfaea4958f461b3e0c","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"454c9569578de31869371fbfaea4958f461b3e0c","tarball":"http://registry-npm.ywwl.com/is-image/download/is-image-2.0.0.tgz","integrity":"sha512-AMDgFqvNtZQ20skjgY/JGSpZ0Ar0RBFr2Jovaak3FLWiKt9ToZwIAemgnJIz+VaRryaZFfQgh+Vs/mfiOxGTGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE1uV/6tfXXdty5Aij+B+IC3BiulA5Jpprht77FAlE5QIhAImutPWEmbvUwfGTja2n5UiiZzp85t8oAfQQ2H9kusJQ"}],"size":1615,"noattachment":false,"key":"/is-image/-/is-image-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-image-2.0.0.tgz_1499421831822_0.9300904260016978"},"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":1499421833045,"_cnpm_publish_time":1499421833045,"dist-tags":{"latest":"4.0.0"}}