{"versions":{"0.0.0-tegami-trusted-publish-setup":{"name":"@fumari/image-size","version":"0.0.0-tegami-trusted-publish-setup","_id":"@fumari/image-size@0.0.0-tegami-trusted-publish-setup","maintainers":[{"name":"anonymous","email":"god63820869@gmail.com"}],"dist":{"shasum":"d5e2842ad8524ccb9ce7dd86ded0bab6cadf114a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@fumari/image-size/-/image-size-0.0.0-tegami-trusted-publish-setup.tgz","fileCount":2,"integrity":"sha512-zKrlDKRFO7hMqdv+sJA5q48LypkzVNeDaadCQfAbzDzyxh151WvCQl6IXcKUG3OdcT9n8xZuesUrS4b8Yr7qkw==","signatures":[{"sig":"MEUCICRXpo2i/22TAzgN9d0tOgAhT1KhX6tz+aUc035rkX7hAiEAo/Yvgkpx+hRnU27WGDr9TU/Sfpd+DxdF6Vy8PuO9Wt0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":380,"size":361},"_npmUser":{"name":"anonymous","email":"god63820869@gmail.com"},"_npmVersion":"11.16.0","description":"Placeholder published by Tegami for npm trusted publishing setup.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/image-size_0.0.0-tegami-trusted-publish-setup_1786634960155_0.7130464913201469","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-13T15:29:20.418Z","publish_time":1786634960418,"_source_registry_name":"default","contributors":[]},"0.1.0":{"name":"@fumari/image-size","version":"0.1.0","description":"Read image dimensions without downloading the whole image. Zero dependencies.","keywords":["dimensions","image","probe","size"],"homepage":"https://fumadocs.dev","license":"MIT","author":"Fuma Nama","repository":{"type":"git","url":"github:fuma-nama/fumadocs"},"type":"module","exports":{".":"./dist/index.js","./package.json":"./package.json"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"26.2.0","tsdown":"0.22.14","vitest":"^4.1.10","tsconfig":"0.0.0"},"scripts":{"build":"tsdown","clean":"rimraf dist","dev":"tsdown --watch","lint":"oxlint .","test":"vitest run","types:check":"tsc --noEmit"},"_nodeVersion":"24.18.0","_id":"@fumari/image-size@0.1.0","dist":{"integrity":"sha512-x2o9u6P8uKUK15B8XgEoRhR3PgLoLSbQKK6FUCd14JzumEw+e8FXZPelij/dZ4VQVMp4r61VD3DcvSo3aEhLAA==","shasum":"ec23d5b2f99f34c339ff00481710e5f29128113b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@fumari/image-size/-/image-size-0.1.0.tgz","fileCount":5,"unpackedSize":29295,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@fumari%2fimage-size@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFw/c2k6byc+wQpOgw3jiWAXeo8pr5vfEVm6I1keKe13AiEAs9ZWUT4eFL0Gg69yWb848bSqdOsRayJ01uz2v4+M58k="}],"size":10134},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6e2e3ccc-b763-403b-a625-35e04740b136"}},"directories":{},"maintainers":[{"name":"anonymous","email":"god63820869@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/image-size_0.1.0_1786635047392_0.14644541846376624"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-13T15:30:47.511Z","publish_time":1786635047511,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.0","temp":"0.0.0-tegami-trusted-publish-setup"},"name":"@fumari/image-size","time":{"created":"2026-08-13T19:49:13.584Z","modified":"2026-08-13T19:49:15.012Z","0.0.0-tegami-trusted-publish-setup":"2026-08-13T15:29:20.418Z","0.1.0":"2026-08-13T15:30:47.511Z"},"readme":"# @fumari/image-size\n\nRead image dimensions without downloading or reading the whole image. No dependencies.\n\nSupports AVIF/HEIC/HEIF, BMP, GIF, ICO, JPEG, PNG, PSD, SVG, TIFF and WebP.\n\n```ts\nimport { probe, imageSize } from '@fumari/image-size';\n\n// reads only as far as the header\nawait probe('./public/banner.png'); // { width: 1200, height: 630, type: 'png', mime: 'image/png' }\n\n// aborts the request once the size is known; times out after 30s\n// by default (pass `timeout: 0` to wait forever)\nawait probe('https://example.com/banner.png', { timeout: 5000 });\n\n// already have the bytes\nimageSize(new Uint8Array(buffer)); // the same result, or `null`\n```\n\n`probe` throws an `ImageSizeError` when the source can't be read or isn't a supported\nformat; `imageSize` returns `null` instead, so a partial image can be retried once more\nbytes arrive.\n\nSizes are always in pixels — SVG lengths given in other CSS units are converted, assuming\nthe default 16px font size for `em`/`ex`.\n\n## Credit\n\nA fork of [probe-image-size](https://github.com/nodeca/probe-image-size) by Nodeca, whose\nformat parsers this is derived from. It drops the HTTP client and stream machinery in\nfavour of `fetch` and `node:fs`, along with EXIF orientation and the unit system.","users":{}}