{"_id":"is-image","_rev":"2784889","name":"is-image","description":"Check if a file path is an image","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-06-13T06:14:55.000Z","created":"2015-05-17T18:57:24.656Z","3.0.0":"2019-04-19T13:13:51.039Z","2.0.0":"2017-07-07T10:03:53.045Z","1.0.1":"2015-05-25T11:28:33.275Z","1.0.0":"2015-05-17T18:57:24.656Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-image.git"},"versions":{"3.0.0":{"name":"is-image","version":"3.0.0","description":"Check if a file path 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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["extension","extensions","file","path","check","detect","is","image","img","photo","picture","jpg","jpeg","png"],"dependencies":{"image-extensions":"^1.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"d9cd7a0ded1c2878aa0b06ee66cf595339792eec","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image#readme","_id":"is-image@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f183431372f6f8caf7cda316a0a6dea4d41926dd","size":1710,"noattachment":false,"key":"/is-image/-/is-image-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-image/download/is-image-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-image_3.0.0_1555679630494_0.3465336260976315"},"_hasShrinkwrap":false,"publish_time":1555679631039,"_cnpm_publish_time":1555679631039,"_cnpmcore_publish_time":"2021-12-16T16:04:56.511Z"},"2.0.0":{"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","size":1615,"noattachment":false,"key":"/is-image/-/is-image-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-image/download/is-image-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-image-2.0.0.tgz_1499421831822_0.9300904260016978"},"directories":{},"publish_time":1499421833045,"_hasShrinkwrap":false,"_cnpm_publish_time":1499421833045,"_cnpmcore_publish_time":"2021-12-16T16:04:57.112Z"},"1.0.1":{"name":"is-image","version":"1.0.1","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":"2b8a3c36fb9664f7b205bd76ab56b650b8efd589","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image","_id":"is-image@1.0.1","_shasum":"6fd51a752a1a111506d060d952118b0b989b426e","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6fd51a752a1a111506d060d952118b0b989b426e","size":1561,"noattachment":false,"key":"/is-image/-/is-image-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-image/download/is-image-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432553313275,"_hasShrinkwrap":false,"_cnpm_publish_time":1432553313275,"_cnpmcore_publish_time":"2021-12-16T16:04:57.337Z"},"1.0.0":{"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","size":1577,"noattachment":false,"key":"/is-image/-/is-image-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-image/download/is-image-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431889044656,"_hasShrinkwrap":false,"_cnpm_publish_time":1431889044656,"_cnpmcore_publish_time":"2021-12-16T16:04:57.764Z"}},"readme":"# is-image [![Build Status](https://travis-ci.org/sindresorhus/is-image.svg?branch=master)](https://travis-ci.org/sindresorhus/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\n## Install\n\n```\n$ npm install is-image\n```\n\n\n## Usage\n\n```js\nconst isImage = require('is-image');\n\nisImage('source/unicorn.png');\n//=> true\n\nisImage('source/unicorn.txt');\n//=> false\n```\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\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-image#readme","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"license":"MIT"}