{"name":"is-image","version":"4.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"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["extension","extensions","file","path","check","detect","is","image","img","photo","picture","jpg","jpeg","png"],"devDependencies":{"ava":"^5.3.1","tsd":"^0.28.1","xo":"^0.55.0"},"types":"./index.d.ts","gitHead":"8e344a9f1a5e8d81f0c3554837580ba913984d51","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image#readme","_id":"is-image@4.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-GaEydOss69aTWNUH0EczOLH7WhNeEjf61fqU4pxUZE7+s86T2X3tEtolOkQ8mI5esdsNHl68ogD9h4cUWSSMog==","shasum":"3caa93ce42406e8bc631e74aa9ca6764ea2f3e70","tarball":"http://registry-npm.ywwl.com/is-image/download/is-image-4.0.0.tgz","fileCount":5,"unpackedSize":3969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6hGpO2c3mW5sFWNZDDUEb76Yr2H2mBjzr9eDQGhMU5AIhAJkv5PP56jfBXrbcZ8AXJQHEVhghrOZTk/0L/hKEucpd"}],"size":1959,"noattachment":false,"key":"/is-image/-/is-image-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-image_4.0.0_1690303595916_0.5540357714421815"},"_hasShrinkwrap":false,"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":1690303596103,"_cnpm_publish_time":1690303596103,"dist-tags":{"latest":"4.0.0"}}