{"_id":"@blazediff/codec-jsquash-png","name":"@blazediff/codec-jsquash-png","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@blazediff/codec-jsquash-png","version":"0.0.1","description":"WASM-based PNG image codec using @jsquash/png for the blazediff library","private":false,"publishConfig":{"access":"public"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"keywords":["png","image","codec","jsquash","wasm"],"author":{"name":"Teimur Gasanov","email":"me@teimurjan.dev","url":"https://github.com/teimurjan"},"repository":{"type":"git","url":"git+https://github.com/teimurjan/blazediff.git"},"homepage":"https://blazediff.dev","license":"MIT","dependencies":{"@jsquash/png":"3.1.1"},"devDependencies":{"@types/node":"^24.3.0","tsup":"8.5.0","typescript":"5.9.2"},"scripts":{"typecheck":"tsc --noEmit","build":"tsup","dev":"tsup --watch","clean":"rm -rf dist"},"_id":"@blazediff/codec-jsquash-png@0.0.1","bugs":{"url":"https://github.com/teimurjan/blazediff/issues"},"_integrity":"sha512-wHsgep+8OkA47xkQ4CZ3SLWWaLDkaOJt2qbTkMOiZQvntAllUR49PmeyvpztPvmvv4BPgk/90ORSQs6H2fI0Eg==","_resolved":"/tmp/8fc635bd6d5d01519a8c46df7a209ed3/blazediff-codec-jsquash-png-0.0.1.tgz","_from":"file:blazediff-codec-jsquash-png-0.0.1.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-wHsgep+8OkA47xkQ4CZ3SLWWaLDkaOJt2qbTkMOiZQvntAllUR49PmeyvpztPvmvv4BPgk/90ORSQs6H2fI0Eg==","shasum":"901dc63a4ac5ef048b612245e72ef7d7f9c26e85","tarball":"https://registry.npmjs.org/@blazediff/codec-jsquash-png/-/codec-jsquash-png-0.0.1.tgz","fileCount":6,"unpackedSize":6273,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCqCPTfgmSPgCe+7y/4JR985R9V+TeKJeTtkct23V6a/wIgLF8Z8TrocAbFwxYx0eh6rN7sI8l2MYLRZgeL/jO/rA4="}]},"_npmUser":{"name":"teimurjan","email":"teymurgg321@gmail.com"},"directories":{},"maintainers":[{"name":"teimurjan","email":"teymurgg321@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/codec-jsquash-png_0.0.1_1773300544857_0.794613743697298"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T07:29:04.764Z","0.0.1":"2026-03-12T07:29:05.016Z","modified":"2026-03-12T07:29:05.245Z"},"maintainers":[{"name":"teimurjan","email":"teymurgg321@gmail.com"}],"description":"WASM-based PNG image codec using @jsquash/png for the blazediff library","homepage":"https://blazediff.dev","keywords":["png","image","codec","jsquash","wasm"],"repository":{"type":"git","url":"git+https://github.com/teimurjan/blazediff.git"},"author":{"name":"Teimur Gasanov","email":"me@teimurjan.dev","url":"https://github.com/teimurjan"},"bugs":{"url":"https://github.com/teimurjan/blazediff/issues"},"license":"MIT","readme":"# @blazediff/codec-jsquash-png\n\n<div align=\"center\">\n\n[![NPM Downloads](https://img.shields.io/npm/dy/%40blazediff%2Fcodec-jsquash-png)](https://www.npmjs.com/package/@blazediff/codec-jsquash-png)\n\n</div>\n\nWASM-based PNG image codec using [@jsquash/png](https://www.npmjs.com/package/@jsquash/png) for the BlazeDiff library. Zero native dependencies — uses WebAssembly for PNG encoding/decoding.\n\n## Installation\n\n```bash\nnpm install @blazediff/codec-jsquash-png\n```\n\n## API\n\n### read(filePath)\n\nRead a PNG file to BlazeDiff image format.\n\n**Parameters:**\n- `filePath` (string) - Path to the PNG file\n\n**Returns:** Promise<{ data: Buffer | Uint8Array | Uint8ClampedArray; width: number; height: number; }>\n\n### write(image, filePath)\n\nWrite a BlazeDiff image to a PNG file.\n\n**Parameters:**\n- `image` ({ data: Buffer | Uint8Array | Uint8ClampedArray; width: number; height: number; }) - Image data to write\n- `filePath` (string) - Output file path\n\n**Returns:** Promise<void>\n\n## Usage\n\n```typescript\nimport { codecJsquashPng } from '@blazediff/codec-jsquash-png';\n\nconst image = await codecJsquashPng.read('./image.png');\n\nawait codecJsquashPng.write(image, './output.png');\n```\n","readmeFilename":"README.md","_rev":"1-170cbae47e9b6987d01a5caca1f60e53"}