{"name":"fast-png","version":"5.0.3","keywords":["png","image","image-js","encoder","decoder"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"fast-png@5.0.3","maintainers":[{"name":"lpatiny","email":"lpatiny@gmail.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":"898236a0a6b6f84e2ac2de0c298f68f5757d4e40","tarball":"http://registry-npm.ywwl.com/fast-png/download/fast-png-5.0.3.tgz","fileCount":40,"integrity":"sha512-3byVzzXsteqHmMYeOAd4yb95EEDkP/dYcgHk/mordTQFijR15b3pQndY00kPBFmLCkayO6W3i664YpDU38l8WQ==","signatures":[{"sig":"MEUCIFNZ6VPHHZoUerNRxue3r+KEqyuMgq+F/22oLnK7s9q8AiEAlJtytujApNTf2kVudnSyphAvE3l0Kl1Y8zjc1y8cXwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":113646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1228CRA9TVsSAnZWagAAR+0P/032sJLVQe27E9Dzbd25\nDhD5+aVu+yahOxNLCiyi/NWSRrZtjgyK0iZCcWSzIdR9uFcDkHS83UXc+D5m\nf65jlALWvjlU0V5NqWq1NARycwFH91u1O8e61qKshAxmIRRi16HPJREufyfl\nAIg1Sg6nMxZtqdiCp1shewb5a4qP8UEJXLTAnTeKJqPPH6jB6OlDsbdvsgu+\n3wYCrLYRcXco/ptHJ4BmdhFgwuJTSod5+YmLVx56dIGsCN4xVg27DqMxkN/O\nHCFwLSsWcHkNWhVB28uAePO24kqf5K5EEv6PVWC00f4cn8X9P6kCHIWJPfVD\ngDRxsDtrn9AZ+IEkNPoVITOjx8cN0moKFwO3afUt/Ksaaus+mJPzKRvhaRZR\n8x2muW2YAExdkwXV4e4klZjc0W4NiVx9LOsuqlduDSVxIKhAy19E7yLP8Aj7\noaucjDvPumbl/rfr4MXODro4Dp9UzuBrKlLLtJuzwd3kTH4+pZkxIzBJh0qS\nRTPTEugPksX8XfEl9mhqrM3NtoT2pKD7EYLJienb7EazpYq9O9E6QF7CLOr1\ne73tICk6Mv2I0w0qr8S8bQGTdP0M+omfnmW21l5L5saCJxLCn3c90dawdlgp\nmxEGEOorIYcz57j2pAFnMPE2jzYSZ98eWVqqP5gFleW6DpVZ2oEgSq8suaMf\ndCj0\r\n=/EmH\r\n-----END PGP SIGNATURE-----\r\n","size":19783,"noattachment":false,"key":"/fast-png/-/fast-png-5.0.3.tgz"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib-esm/index.js","gitHead":"d3e3bfa882e877ce6dce00b5a1834065381a783a","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-coverage && npm run eslint && npm run check-types","clean":"rimraf lib lib-esm","eslint":"eslint src --ext ts","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","test-only":"jest","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","test-coverage":"npm run test-only -- --coverage","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"cheminfo-bot","email":"admin@cheminfo.org"},"prettier":{"semi":true,"tabWidth":2,"arrowParens":"always","singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/image-js/fast-png.git","type":"git"},"_npmVersion":"6.14.8","description":"PNG image decoder and encoder written entirely in JavaScript","directories":{},"_nodeVersion":"14.15.1","dependencies":{"pako":"^2.0.2","iobuffer":"^5.0.2","@types/pako":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.6.3","pngjs":"^6.0.0","eslint":"^7.15.0","rimraf":"^3.0.2","ts-jest":"^26.4.4","prettier":"^2.2.1","typescript":"^4.1.3","@types/jest":"^26.0.19","@types/node":"^14.14.13","eslint-config-cheminfo-typescript":"^8.0.5"},"_npmOperationalInternal":{"tmp":"tmp/fast-png_5.0.3_1607953851794_0.49340916977330607","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":1607953851995,"_cnpm_publish_time":1607953851995,"dist-tags":{"latest":"8.0.0"}}