{"name":"fast-png","version":"6.1.0","keywords":["png","image","image-js","encoder","decoder"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"fast-png@6.1.0","maintainers":[{"name":"lpatiny","email":"luc@patiny.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos+npm@protonmail.com"},{"name":"cheminfo-bot","email":"admin@cheminfo.org"}],"homepage":"https://github.com/image-js/fast-png#readme","bugs":{"url":"https://github.com/image-js/fast-png/issues"},"dist":{"shasum":"c0abd3015346e16752acbe4ea74f1f0170b55b9e","tarball":"http://registry-npm.ywwl.com/fast-png/download/fast-png-6.1.0.tgz","fileCount":40,"integrity":"sha512-v8e/40RKZbE1mALigoqBOkYnemCVSMmVlGSz8fawZAZg5UQ9OZeR00L++CPvrhIGm2F6TxV5u9lbWD0oOJHcCw==","signatures":[{"sig":"MEQCIFtjN0EJyT8ROU/fr2qpkTAeSDReOe02MeZPHQvslWmvAiA3g6KtxGq99+c2mwJkMNsQe68nPy6Tdw4WVo8aRzEqOQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":118956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2qxBCRA9TVsSAnZWagAAKPcP/1aFEoOiqjdRKtDcLoTy\nkIqXDuHcBXK1ewVvyVDQZbNfNIghY23NUp3STYwjpxKn6cmB8m9h3DKMz/Dh\n0iiZ/FCpOnQV2jOBdmJOJRMKHaGigvonypkt/Gt5Ei3GaI/taslKIHPpXPEC\nhACYCuIuFpdTlrJzupcs8StT5UU6y/GhdDbiBsUJLTh0yPLMf9XEHIbi5AVr\nLiRo2zRobBAAeMybFZNwXFqAJk813pll26VyX/GS7j7K00MNsUGlqRy75TcG\nWBo+43SBIIoIyq1UuHrD5sMe1Hufmq3rrrhKpgbWy5BiIhJYabbG0aPEp0HB\nltg/S4uCvijfxWxVwwgqm6Q45RlTLRtpZ6IlEdb5VAlmsJt7oNaU2c6w6934\niZMATszbk/zGyxKqW+Z7LnoKzi8GSnVD8Ya4a3k6Nb4dvQ+QgRsWGbyoom0Y\n15N88VTZfg7ry5TzwVENympt6RPgZGzVlp7wBToMf6iOLpLn6jOhr2Rs7AiO\n1UutbEV7Ywm8zwYfhWTU+9QCyMW+J4dpmK69/r8wSTHKtHrL4GrW54U4zet4\n2QbYvOSM2d/qoKJ+N/4avHL6zkBMFnuKCdS5luFq6mWnFbfdqSDPc3Iqp8GA\nwpG6GDZoaH6ueerBmMN62Wt/OvqFOVz+CBVxX8J9XMDiEdyHC8ocA4d7HsvE\nG0lP\r\n=cUOs\r\n-----END PGP SIGNATURE-----\r\n","size":20716,"noattachment":false,"key":"/fast-png/-/fast-png-6.1.0.tgz"},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib-esm/index.js","gitHead":"a80677c8de55cf610952cd7f8cd9d25ff96c22eb","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types","clean":"rimraf lib lib-esm","eslint":"eslint src","prepack":"npm run tsc","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","prettier":"prettier --check src","test-only":"jest --coverage","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","prettier-write":"prettier --write src"},"_npmUser":{"name":"cheminfo-bot","email":"admin@cheminfo.org"},"repository":{"url":"git+https://github.com/image-js/fast-png.git","type":"git"},"_npmVersion":"6.14.15","description":"PNG image decoder and encoder written entirely in JavaScript","directories":{},"_nodeVersion":"14.18.0","dependencies":{"pako":"^2.0.4","iobuffer":"^5.0.4","@types/pako":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.3.0","pngjs":"^6.0.0","eslint":"^8.0.1","rimraf":"^3.0.2","ts-jest":"^27.0.7","prettier":"^2.4.1","typescript":"^4.4.4","@types/jest":"^27.0.2","@types/node":"^16.11.1","eslint-config-cheminfo-typescript":"^10.1.1"},"_npmOperationalInternal":{"tmp":"tmp/fast-png_6.1.0_1634570463896_0.5905145150141033","host":"s3://npm-registry-packages"},"readme":"<h3 align=\"center\">\n  <a href=\"https://www.zakodium.com\">\n    <img src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" />\n  </a>\n  <p>\n    Maintained by <a href=\"https://www.zakodium.com\">Zakodium</a>\n  </p>\n</h3>\n\n# fast-png\n\n[![NPM version](https://img.shields.io/npm/v/fast-png.svg)](https://www.npmjs.com/package/fast-png)\n[![npm download](https://img.shields.io/npm/dm/fast-png.svg)](https://www.npmjs.com/package/fast-png)\n[![test coverage](https://img.shields.io/codecov/c/github/image-js/fast-png.svg)](https://codecov.io/gh/image-js/fast-png)\n[![license](https://img.shields.io/npm/l/fast-png.svg)](https://github.com/image-js/fast-png/blob/main/LICENSE)\n\nPNG image decoder and encoder written entirely in JavaScript.\n\n## Installation\n\n```console\nnpm install fast-png\n```\n\n## API\n\n### [Complete API documentation](https://image-js.github.io/fast-png/)\n\n### `decode(png[, options])`\n\n#### Arguments\n\n- `png` - A TypedArray or Buffer that contains the PNG data.\n- `options` - An object of options\n\n#### Options\n\n- `checkCrc` - If set to `true`, the CRC will be checked for each chunk and an error will be thrown in case it's wrong (default: false).\n\n### `encode(image)`\n\n#### Arguments\n\n- `png` - An object representing the image. You can pass an ImageData from the Canvas API or an object with the following properties:\n  - `width` - The width of the image\n  - `height` - The height of the image\n  - `data` - An array or TypedArray with the image data\n  - `depth` - A number indicating the color depth (only 8 and 16 are supported now). Default: `8`.\n  - `channels` - Number of channels, including alpha (1, 2, 3 and 4 are supported). Default: `4`.\n  - `text` - An object with key-value pairs representing `tEXt` chunks. The keys must have less than 80 characters.\n    The keys and values must have only characters in the latin1 charset (maximum code point of 255).\n    Default: `undefined`.\n\n### `hasPngSignature(array)`\n\nReturns whether the array starts with the PNG signature (magic bytes).\n\n## PNG standard\n\nSpec can be found at: https://www.w3.org/TR/PNG/\n\n## License\n\n[MIT](./LICENSE)\n","publish_time":1634570464004,"_cnpm_publish_time":1634570464004,"dist-tags":{"latest":"8.0.0"}}