{"name":"fast-png","version":"3.1.2","keywords":["png","image","image-js","encoder","decoder"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"fast-png@3.1.2","maintainers":[{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/image-js/fast-png#readme","bugs":{"url":"https://github.com/image-js/fast-png/issues"},"dist":{"shasum":"41c52cf9c5a07678d074e9d661c206d88b65d774","tarball":"http://registry-npm.ywwl.com/fast-png/download/fast-png-3.1.2.tgz","fileCount":29,"integrity":"sha512-B81gt4XvDiLryn0VTL1xdGfftLfXKNsfMBTSEnt/wbt+vYnKr3oHQaIgULDJafNJ2NqyGNn04H0LXSUALuuEZA==","signatures":[{"sig":"MEUCIBz1Md6YGV/RntVC252ysJl2KFkSptE6kf1Oio/eguY0AiEApeexJWNQsHsdoqHKRyE5L+QE+Xniee9O0G1OVuGP+Sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnmtwCRA9TVsSAnZWagAAPPAP/i+Tw/KraDswvxrhb87y\npv8SCz3wjfbIBeRUyOGyuqhjqftvWY5vj3GH8cxwSx48ZapnZgK7ltQgbcXx\nQYHZWn6VCQyDdpra+IwYMji41t/f7KOCRAaV4QA25IiBewlAGS9T7ucx0449\nfy6ItLD2Ze5naDBfNrERmzPmmUCGoUuMdAYpom/H7Hv7HRxKOxPPhnE5l27N\nhpT88elEkgtruu0aYvslfPt5pXydeKjdqDxB5WUVRY5f5qzoT621AqCZ44qp\nWncArjs9QX9Fl1lYBGhGM3FfOWv6UbEa+IBcdibivtxDPU9tlfuqLYQlHpi6\nLjtVJSwl3c0sabmg7vFjgpyYPwRaClCobQhxiLvUqoB+pCB8Oh3J1i/QRYdT\nhy1Px7sOp0LtCwnEVZ3KhqbXd/ASZQYsBjjNN5uaooKWQwjMbR+/nfu622Y+\nAilqzql0mBV3aQeG+x4Uu4Iy1afespmJY+crlYMMsGPIX+z422WzVakT2WmC\nG2dXhVYsxVNRwiikD1bdSr/TGIkO2HCNjB3ksLLdBoqIDoWMcNuNIGCOLsjK\nT9dGDCRT1GOYcEN5PohmesN/ASn/a2olBx/EiZWpcvZxGeQ/NV+bL/XRsvgM\n8UfhR+F2jhN81MKrvSu0IC0nv9YbzpzbEmEAYk7OeV9LY0tax4vr7MNL2WPM\nrjjV\r\n=6rJ7\r\n-----END PGP SIGNATURE-----\r\n","size":17923,"noattachment":false,"key":"/fast-png/-/fast-png-3.1.2.tgz"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib-esm/index.js","gitHead":"ec78f6404e0d28a713dffe53a8321a35596617cb","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-coverage && npm run eslint","clean":"rimraf lib lib-esm","eslint":"eslint src --ext ts --cache","tsc-cjs":"tsc","tsc-esm":"tsc --project tsconfig.esm.json","test-only":"jest","eslint-fix":"npm run eslint -- --fix","test-coverage":"npm run test-only -- --coverage","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"targos","email":"targos+npm@protonmail.com"},"repository":{"url":"git+https://github.com/image-js/fast-png.git","type":"git"},"_npmVersion":"6.7.0","description":"PNG image decoder and encoder written entirely in JavaScript","directories":{},"_nodeVersion":"12.0.0-nightly201903297d0e50dcfe","dependencies":{"pako":"^1.0.10","iobuffer":"^4.0.1","@types/pako":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.5.0","pngjs":"^3.4.0","eslint":"^5.15.3","rimraf":"^2.6.3","ts-jest":"^24.0.0","typescript":"^3.3.4000","@types/jest":"^24.0.11","eslint-plugin-jest":"^22.4.1","eslint-plugin-import":"^2.16.0","eslint-config-cheminfo":"^1.20.1","@typescript-eslint/parser":"^1.5.0","@typescript-eslint/eslint-plugin":"^1.5.0","eslint-config-cheminfo-typescript":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fast-png_3.1.2_1553886063183_0.7195755613096377","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":1553886063382,"_cnpm_publish_time":1553886063382,"dist-tags":{"latest":"8.0.0"}}