{"name":"is-image","version":"3.1.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"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"types":"./index.d.ts","gitHead":"b8cc2ef6dee8f8953439968ad92678814e0341bb","bugs":{"url":"https://github.com/sindresorhus/is-image/issues"},"homepage":"https://github.com/sindresorhus/is-image#readme","_id":"is-image@3.1.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"integrity":"sha512-0sJQkCqLMZzyYl3XNYKjGnZDoZQ7dNOjKh9eFeS5OEu4y8UDPaI9szML8sB1pBVpqfYt/wmRy6e7TwZHkT0KIg==","shasum":"d8e5e8370474297cba8ad259ec6f213ed506133e","tarball":"http://registry-npm.ywwl.com/is-image/download/is-image-3.1.0.tgz","fileCount":5,"unpackedSize":3945,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTc0pbMW0Am2PGQ8sL2NN4W99x4UJsjei+C9S6grp4kAiEAu/xDVZ/Uxu/x8/oeYvq/e8+Y284B09reOUrZSwMzlNs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixY8uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpznA/+P7r+AfTCX9DNMyWq5EydBcq8QIcYHtl4it9vYvBZzEpLgfYF\r\nMSi9pjUlcpIuD0749qysIjmP+1gUNJ9AqRpOvbHwXC8px2E9ZaeYWQVqhlN2\r\nkKDAo6JlpMSxzstFMJC0b3AzkijRtHn1xFyUo74lAqQvlS+GXN6ABA+7GrTW\r\nqk/PTs+oe2ih8LaWZCHJ567KdeTkQxDIE6orBK39ealwUpqjL9eGWc00ntgN\r\nBKs8F0J8LduD+Z6n2Hs4ESy1la0TGI8lpNser0P+PC4rK/TzZaBLWBW9zTng\r\n4rzovcpj0Vm5zg82Z3LlTHarN6ChziJYckFJxRn/5q+mO5dEaYxk2rm8LqBP\r\nq3ulplJiJHsRdZYEh06q8eiD5wf7+8QbXL+hsYMSaIyBbQSlzxE/NmOEcjz5\r\nW75qIhVJqHey8TjThXf/wzN1DJF2kOGIyEbPZSemzollDcj40BXPEKBzNg1q\r\nRP/j8hcWoPeUHvcV+IFFGXvOSVK6GUQY+akuxPqC8souR7p/8KokPwVibDX6\r\n7EanFfPynoV8H6tzOlpIYp1teOUTeSEzLqzxasWSd28JNYKY905U7Zg0ROTW\r\nouKU0BGm3yHVhN7AWE1bOpjODrHfVKrVy18J2A/0u671qIwi03Kto5EOxPw9\r\n4lBb/KINS/6B34iGb6JT4We+LJwLSUCnPzI=\r\n=wVbB\r\n-----END PGP SIGNATURE-----\r\n","size":1965,"noattachment":false,"key":"/is-image/-/is-image-3.1.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_3.1.0_1657114414781_0.30325488157051717"},"_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":1657114414908,"_cnpm_publish_time":1657114414908,"dist-tags":{"latest":"4.0.0"}}