{"_id":"image-meta","_rev":"10-ef9a703f41ea1c7f5470eeee709d7668","name":"image-meta","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.0":{"name":"image-meta","version":"0.0.0","license":"MIT","_id":"image-meta@0.0.0","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/nuxt-contrib/image-meta#readme","bugs":{"url":"https://github.com/nuxt-contrib/image-meta/issues"},"dist":{"shasum":"854ed4cb327989d637624e60510f84a44c13f295","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.0.0.tgz","fileCount":5,"integrity":"sha512-L9yW5SVNYfMBZHYYsH+4BspMxtm41smg+YO0o1U9rYEk4pb7A3PsJLPHC6bSzI6jskIGlmAWeutRfM0lUWQ24w==","signatures":[{"sig":"MEQCIF4xT18yh9kIPbdvKcPB3qKbWlyCYqaI3PCjevg1H2jbAiAi8SSrEBc22bb+SJP1TQ4ALIDQ+zliIQoi+bhkhpqjdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZyFCRA9TVsSAnZWagAAgbYP/RPT8zzjkvMF1C0H5T91\nzoIA+NopvjBH+jYSIeeBG+Oyhzs6LfQeQMyZaMBU3zoN9mhMP4+pqA3/ma0S\nDj2UB4OkanM9BHZ3Dyy+W1aCeoE/rsvnP/zVt0DgFn5J+Pv3/6dqyTK6hqNO\nTki7ZXvhpbGmtGC1zEZghg1bQ5TUtIOBIaCAJbvpgooS3hN/Cmj+h8Je3Jrp\ns+iZuoeyjSrAz+OJiOhe0U04OotOXQ2bjmqlIAwdxE5ZT7Ets0izqP8fzOZA\nmmqs6NdXdssivKRokBtQJ3JudRpvEzuDWsZbvqXhFYTFHclKiJWBNh6U22/b\nNxRnmf8iWkcrfRtp+4DDhMaISon10UKzVr/3wTOyNmQ+TKUkHqgc34sU4vqs\nv1Qg5f62ioTb5w8dU93aykuDXUF0JTiuWJ/hocGzrIvWwXUhL6HjR1A6itvc\nGQ+Z3xeYxNE8T7Sjle+LF1IczfOq+31hlMccy07+VgcAe4pXUeIJuNiQiFq+\nkxXpHyJmRKyQcNaWFpncKWgSQCWc1oAUvYrfEasIGOqGyjCFrUTGCUqLr2xg\nxwFIdup4yyexropkrFxKvT7d9v8eXUCNfSr2fN3ckcE3GvpIWbYNgJLuiqx3\nceX+VYmsdSsaaZ+hUPsNAGIeSylX6QnRm6FLSGIGwluAKT2pBttmONP3VjYl\npyXO\r\n=GJrH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=10.18.0"},"scripts":{"lint":"eslint --ext .ts,.js .","test":"yarn lint","build":"siroc build","clean":"rm -rf dist docs"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/nuxt-contrib/image-meta.git","type":"git"},"_npmVersion":"6.12.0","description":"...","directories":{},"_nodeVersion":"12.13.0","_hasShrinkwrap":false,"devDependencies":{"siroc":"^0.4.0","eslint":"^7.12.1","typescript":"^4.0.5","@nuxtjs/eslint-config-typescript":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.0.0_1603902596607_0.2323556412120873","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"image-meta","version":"0.0.1","license":"MIT","_id":"image-meta@0.0.1","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/nuxt-contrib/image-meta#readme","bugs":{"url":"https://github.com/nuxt-contrib/image-meta/issues"},"dist":{"shasum":"0f6f708e6d68ea796a977dcae3223019ee2b3eca","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.0.1.tgz","fileCount":6,"integrity":"sha512-FhTB6WW/zfswIFQwjItrisL/Pt/aKbMCAkVdDtdfsaWwo6QwhpM7XMdwtDw8qs5y2IZsHcQ7TPG/JznJYVphSg==","signatures":[{"sig":"MEYCIQDL5o7IhRLOJjGEoMQl/U68BJP4/no861YbdtCSYgyjdAIhAOqbnQPgfXf+bFGgOBAY9sLhWE3GTadFL8y2rGd6wFKk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZ+3CRA9TVsSAnZWagAAMpMP/jJ8NXXREGoj4ZHvHptQ\n9LF+7Hjy+9zqhET4Bvqnh+5CY76wS8/3zHTjOJd/g8trnJ5BkCoYtWjlLRhW\nSAPGRshr01aYcpaZDIAWbARTV+rRr95b2NPP/boe8w2sQ5c9QifUVs8Km1eB\nLY6nwj65VFwt2KGzfOMj6tNbNGwGVpWhzAvWzqlwzfTIILbyy5D88M7efLoS\nK0w0va6NFJi4SHxIWjlhXUHGlgHY2++qZfqzMspQYfBB4XvA6+hLUGIntgcH\ndZc1EIsGhuJxxcpIy/BaxPnHb0Rc51brbnLF/xhyZBqPoDnZe1PxM04pgCdl\nfJCVHuJNmKGqRQKZjOPSIsYRIk6nRUvwlTJF2qC29O0J6kkymtm4CYjaEqu3\nFDQ6qr6g/bUZIsvQFeOc/a437Btq0y7Cp9ZHi6IOxEouIPDy4fK9Q+aNx5Ud\nylTfQ3o36dW6G79USC0+4zeb14kciAetYS0gdRi1j+wOMm9/juxCufS5gDzA\nfVUxnx7L28hJGISufnwalzN0TH0VkRWvqd4DIvK+pXW4Kiy9e6wt8wSZlSnM\nQVgTo5DybPLk0+izY2bJpvcVvdSD4E2p20Hr6vlzuyvODmozuIcZrgehnBuY\nGzHtXPV4GEbkDT3NWYZqEfO9RR2aDeT2euLdfJCFwni9piSAeV6L/nsoVVa1\npFgk\r\n=4HX3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=10.18.0"},"gitHead":"aa6d8db976111e93975dcdfb7cb1dbcdcd536481","scripts":{"lint":"eslint --ext .ts,.js .","test":"yarn lint","build":"siroc build","clean":"rm -rf dist docs","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/nuxt-contrib/image-meta.git","type":"git"},"_npmVersion":"6.12.0","description":"[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![bundle phobia][bundlephobia-src]][bundlephobia-href]","directories":{},"_nodeVersion":"12.13.0","_hasShrinkwrap":false,"devDependencies":{"siroc":"^0.4.0","eslint":"^7.12.1","typescript":"^4.0.5","standard-version":"^9.0.0","@nuxtjs/eslint-config-typescript":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.0.1_1603903415353_0.11563964023087547","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"image-meta","version":"0.1.1","license":"MIT","_id":"image-meta@0.1.1","maintainers":[{"name":"farnabaz","email":"farnabaz@gmail.com"},{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/nuxt-contrib/image-meta#readme","bugs":{"url":"https://github.com/nuxt-contrib/image-meta/issues"},"dist":{"shasum":"a84dc7d5f61c7d60e85ec0c3ac81beee8646039b","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.1.1.tgz","fileCount":6,"integrity":"sha512-+oXiHwOEPr1IE5zY0tcBLED/CYcre15J4nwL50x3o0jxWqEkyjrusiKP3YSU+tr9fvJp33ZcP5Gpj2295g3aEw==","signatures":[{"sig":"MEYCIQCj5u5WNV3w2eFH3V9sfCKXyml2zcEqMmS2mP1rd8XN0gIhAMnTRfiKyMO2fUNxjtRFSKaq7NKzaWmUHZ4DAx1Xg2ph","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2vkuCRA9TVsSAnZWagAA3gYP/jdcYy9Oxau7CHqmsNm6\nE74PT1JSi3kKnvYtbXDPjXrjXVa9QABqjudNSyv+hh4PTNwaIJdnFtHXoX8g\nOhHlrpf8q00d3kExSWJnaU+IUXW7Ecc9EjIiNl9SDF87+EV6xzwhQ7Yq2qpm\nJJQHFUioiIDmx8wcdQzXU5RX2WVflhf2trRXny6MQdtKtzNcF8VxM7Xta9xN\nhzowk2uJgU8TWQqitHofsl3IuKdbKGSkv3l+98Y/TjpLAZErnuT+5TFMvoiC\nH8Q0pgTVayZQfJTyGAePLcde3vl5l8yNBX9ClUVDnxPQlpiEE/CkBUNaJF6K\nEPfIYoxx7B44/4hDxdFx1v/QpbJQfoqqFLqC1pfikSguZcSdwrzuXqxY8syn\ncLiRHgeRJgvIzWDdKV/lS8avFcs9gFa8T0wBYERskozXuJZWk28rESTk+igd\nRMkH18xmnJVHxkDuxoQvjdI79p0u3Qyu2qb5RllkIEDAjwUe7oQy3F25UP8K\nElNl3aIaHNzprFMYjRvwA2WjsheneaJ9Z6DVVJSB9Wt++GtcbtuktEn6SNi7\ntLw/v1t6RJsnFvpRmB/O7tqy4TscIXUYJhbbm4YSGRmb01Jb1dRT/z79ZsyZ\nHitmNQB1Q8rMg5bFdsl8nQGsnYZshlAbol7dD7/cA4C5KOFDOvOYoQ50ziyI\nzdmH\r\n=93E/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","types":"dist/index.d.ts","engines":{"node":">=10.18.0"},"exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"621844f042cf6fdb7a74eee85170b6dee151d8a0","scripts":{"lint":"eslint --ext .ts,.js .","test":"yarn lint","prepack":"unbuild","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/nuxt-contrib/image-meta.git","type":"git"},"_npmVersion":"8.1.0","description":"[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![bundle phobia][bundlephobia-src]][bundlephobia-href]","directories":{},"_nodeVersion":"14.18.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"latest","unbuild":"latest","typescript":"latest","standard-version":"latest","@nuxtjs/eslint-config-typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.1.1_1635369366756_0.2700983857539869","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"image-meta","version":"0.2.0","license":"MIT","_id":"image-meta@0.2.0","maintainers":[{"name":"farnabaz","email":"farnabaz@gmail.com"},{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/unjs/image-meta#readme","bugs":{"url":"https://github.com/unjs/image-meta/issues"},"dist":{"shasum":"ea28d05d52f5ad35f75b14f46278a44d626f48bc","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.2.0.tgz","fileCount":8,"integrity":"sha512-ZBGjl0ZMEMeOC3Ns0wUF/5UdUmr3qQhBSCniT0LxOgGGIRHiNFOkMtIHB7EOznRU47V2AxPgiVP+s+0/UCU0Hg==","signatures":[{"sig":"MEYCIQDNwLMi9UYlWnUqfM3XcxGTE8ulb0PHjbV0eMCJZdJg0AIhAPwL/8zazMcktFgrw7SeYEEIWdzgYpEpLRV4Do55zSee","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42745},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"8dd071403fd83bb98fd630bf1efa05447c19ea5f","scripts":{"dev":"vitest dev","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/image-meta.git","type":"git"},"_npmVersion":"9.5.1","description":"Detect image type and size using pure javascript","directories":{},"sideEffects":false,"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"packageManager":"pnpm@8.9.2","devDependencies":{"jiti":"^1.20.0","eslint":"^8.51.0","vitest":"^0.34.6","unbuild":"^2.0.0","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.6","changelogen":"^0.5.5","eslint-config-unjs":"^0.2.1","@vitest/coverage-v8":"^0.34.6"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.2.0_1697588447866_0.10561025846172867","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"image-meta","version":"0.2.1","license":"MIT","_id":"image-meta@0.2.1","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/unjs/image-meta#readme","bugs":{"url":"https://github.com/unjs/image-meta/issues"},"dist":{"shasum":"3a9eb9f0bfd2f767ca2b0720623c2e03742aa29f","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.2.1.tgz","fileCount":8,"integrity":"sha512-K6acvFaelNxx8wc2VjbIzXKDVB0Khs0QT35U6NkGfTdCmjLNcO2945m7RFNR9/RPVFm48hq7QPzK8uGH18HCGw==","signatures":[{"sig":"MEQCIHSnJf+oPGJGVi/i5W4cxP8FcMom42Pjnad1XoFM7SSFAiBiQ8vpoK2SvGUJ40bT/TJtzqKW1SocmSdmodCsx78bpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48206},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"a619a4645dabb7637cd611fdce4600ede49b42da","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/image-meta.git","type":"git"},"_npmVersion":"10.7.0","description":"Detect image type and size using pure javascript","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.4.0","devDependencies":{"jiti":"^1.21.6","eslint":"^9.6.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.2","typescript":"^5.5.3","@types/node":"^20.14.9","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.2.1_1719997573534_0.5603642739231034","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"image-meta","version":"0.2.2","license":"MIT","_id":"image-meta@0.2.2","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/unjs/image-meta#readme","bugs":{"url":"https://github.com/unjs/image-meta/issues"},"dist":{"shasum":"a88dbdf1983d7c23a80c3e71d3b8acdb5379f5e0","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.2.2.tgz","fileCount":8,"integrity":"sha512-3MOLanc3sb3LNGWQl1RlQlNWURE5g32aUphrDyFeCsxBTk08iE3VNe4CwsUZ0Qs1X+EfX0+r29Sxdpza4B+yRA==","signatures":[{"sig":"MEYCIQCm7reT190eNPXyrmblSBd2teETEgFQa3/fO9eCAZxIYwIhANJBZ4ccJN+wgIUxDuvUa5frV7/g5nTwN1myLBZXSM6M","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53137},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"88f523f678835c5e2661869d3fc07d4895400e11","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/image-meta.git","type":"git"},"_npmVersion":"11.6.0","description":"Detect image type and size using pure javascript","directories":{},"sideEffects":false,"_nodeVersion":"24.9.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.18.1","devDependencies":{"jiti":"^2.6.1","eslint":"^9.37.0","vitest":"^3.2.4","unbuild":"^3.6.1","prettier":"^3.6.2","typescript":"^5.9.3","@types/node":"^24.7.0","changelogen":"^0.6.2","eslint-config-unjs":"^0.5.0","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/image-meta_0.2.2_1759822165459_0.3970501438556786","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"image-meta@0.3.0","bugs":{"url":"https://github.com/unjs/image-meta/issues"},"dist":{"shasum":"aba9bbc3357f243672460bf6d6eb79aba6919229","tarball":"https://registry.npmjs.org/image-meta/-/image-meta-0.3.0.tgz","fileCount":5,"integrity":"sha512-IDxPcgtP9oUwUhcUMBfAQo27JTx9j96jFV9kpfavkANF6LvcTWEm1IouSbgMDV3G5Y5jx2SEdnHtecxV2OjGBA==","signatures":[{"sig":"MEUCIFJV9BydPyrkb3JA+aV0glWdGm4rAtDXVRkj2d12bQvmAiEA/2HL10UKsFq1RHbV/2vhRrSDOlg9tqpUdqM+PvUM9bM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDKYkDh+yXmU3fJNfnZGjovrKwhyL4gbmGfvTUYtxlXcwIhAK03HyjnJm/seWWERthLvRFF2r9u/IoT/6bnHJrjedVw"}],"unpackedSize":34295},"name":"image-meta","type":"module","types":"./dist/index.d.mts","exports":{".":"./dist/index.mjs"},"license":"MIT","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"obuild","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"version":"0.3.0","_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"homepage":"https://github.com/unjs/image-meta#readme","repository":{"url":"git+https://github.com/unjs/image-meta.git","type":"git"},"_npmVersion":"12.0.2","description":"Detect image type and size using pure javascript","directories":{},"maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"packageManager":"pnpm@11.27.1","devDependencies":{"jiti":"^2.7","eslint":"^10.11.0","obuild":"^0.4.40","vitest":"^5.0.1","prettier":"^3.9.8","typescript":"^6.0.3","@types/node":"^26.6.2","changelogen":"^0.6.2","eslint-config-unjs":"^0.6.2","@vitest/coverage-v8":"^5.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/image-meta_0.3.0_1790371411179_0.5361100220568453"}}},"time":{"created":"2020-10-28T16:29:56.606Z","modified":"2026-09-25T21:23:31.423Z","0.0.0":"2020-10-28T16:29:56.753Z","0.0.1":"2020-10-28T16:43:35.502Z","0.1.1":"2021-10-27T21:16:06.938Z","0.2.0":"2023-10-18T00:20:48.141Z","0.2.1":"2024-07-03T09:06:13.702Z","0.2.2":"2025-10-07T07:29:25.646Z","0.3.0":"2026-09-25T21:23:31.268Z"},"bugs":{"url":"https://github.com/unjs/image-meta/issues"},"license":"MIT","homepage":"https://github.com/unjs/image-meta#readme","repository":{"url":"git+https://github.com/unjs/image-meta.git","type":"git"},"description":"Detect image type and size using pure javascript","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"readme":"# image-meta\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![bundle][bundle-src]][bundle-href]\n\nDetect image type and size using pure JavaScript. It has no dependencies and works in Node.js, browsers and other runtimes.\n\n## Usage\n\n```ts\nimport { imageMeta } from \"image-meta\";\n\nconst res = await fetch(url);\nconst data = new Uint8Array(await res.arrayBuffer());\n\nconst meta = imageMeta(data);\n// => { type: \"png\", width: 123, height: 456 }\n```\n\nIn Node.js, a `Buffer` works as input because it is a `Uint8Array`:\n\n```ts\nimport { readFile } from \"node:fs/promises\";\nimport { imageMeta } from \"image-meta\";\n\nconst meta = imageMeta(await readFile(\"./image.jpg\"));\n```\n\nThe type is detected from the file contents, not the file extension.\n\n### Result\n\n```ts\ntype ImageMeta = {\n  type?: string; // detected format, e.g. \"png\"\n  width: number; // of the largest image when there are several\n  height: number;\n  orientation?: number; // EXIF orientation (jpg)\n  images?: Omit<ImageMeta, \"images\">[]; // all embedded images (ico, cur, icns)\n};\n```\n\n### Error handling\n\n`imageMeta` throws an error if the input is not a `Uint8Array`, the format is unsupported, or the data is invalid. Wrap calls that take untrusted input in `try/catch`:\n\n```ts\ntry {\n  const meta = imageMeta(data);\n} catch {\n  // Not a supported image\n}\n```\n\n## Supported formats\n\n`avif`, `bmp`, `cur`, `dds`, `gif`, `heic`, `icns`, `ico`, `j2c`, `jp2`, `jpg`, `jxl`, `ktx`, `png`, `pnm`, `psd`, `svg`, `tga`, `tiff`, `webp`\n\n## Development\n\n- Clone this repository\n- Install the latest LTS version of [Node.js](https://nodejs.org/en/)\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\nSee [AGENTS.md](./AGENTS.md) for the project layout and how to add a new format.\n\n## License\n\nMade with 💛\n\n🔀 Based on [image-size](https://github.com/image-size/image-size) by [Aditya Yadav](https://github.com/netroy) and [contributors](https://github.com/image-size/image-size/graphs/contributors).\n\nPublished under [MIT License](./LICENSE).\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/image-meta?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/image-meta\n[npm-downloads-src]: https://img.shields.io/npm/dm/image-meta?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/image-meta\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/image-meta/main?style=flat&colorA=18181B&colorB=F0DB4F\n[codecov-href]: https://codecov.io/gh/unjs/image-meta\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/image-meta?style=flat&colorA=18181B&colorB=F0DB4F\n[bundle-href]: https://bundlephobia.com/result?p=image-meta\n","readmeFilename":"README.md"}