{"name":"fast-png","version":"5.0.0","keywords":["png","image","image-js","encoder","decoder"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"fast-png@5.0.0","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":"12e5157107ac7e5404cbfbcd70fe5b1582ec720d","tarball":"http://registry-npm.ywwl.com/fast-png/download/fast-png-5.0.0.tgz","fileCount":40,"integrity":"sha512-xqnm/BM+cVYvMp3aMzky4NZ8d0v5MjQE6XQChi4JXuJk7LJx+hTreZm++zC3GwOjq4K5PL9+I0mSSDcFwtKMlg==","signatures":[{"sig":"MEYCIQCSD4xNQsRtdf3K10pktS0PY74sP1GnXRJb85TSWb0A/wIhAOWXBW8DeSanJ/MVH50/HjKzFBM2mnncgjOpMY2NXKuJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdypaJCRA9TVsSAnZWagAAGTkP/RiVewNTU+DhCx/vxFSj\nLtz3VMsfbKhyXG7kPB7r8mfIotUGJVWIgzi+SRyKLIV/Y6qYCSZdEZqoLCUV\nbrzTx4S1TqtDQMJTH2rCqgc5HxfcGGcq8TQ0s3PKZEl+Jnv40S6vedHFJXx7\nmAaI0H2KtJiacD1AaKnfNf71ZupBacXoSr+nTFKMLNpjOHPQqAfm178IZB9i\nAeCQbvzz9PlKEXXZug+5sdGOOMHtkEIKcDAklP/fHHq0bpD94jb1WJaqNuyF\njkWenQeKUuHcLTZNu7aQhDt8a6NI8mbmVWyA557abRsPXvFSUta7HKh3NOyt\nUK9oUlQEGWbwt6UQmiRpGg0EJgC/Ls69LGe63GN+y7YpoU4H6VrhWvvxKLKZ\nDtS4jWZZzksoh+O8S0hUmzgw7N3iwJXMtVfkrE+OXLX+XpU52k62ubaL4fjd\nG/M3Cy/hSs+RCPVcqXefirDMSBkowOzF1E1L5qlpMb6oB7gtAGa0ENUd1Ulj\nDPd6CQ5yjnvxYPLHvUkj7Q7/3gg8h9pcEyFXcFWJw3qB87P39LvjISIj8Pj4\np4t6I4lWJphSshIs7p/Y4uHliz+uFH1E0YW63jAxtP7iKKebpzVqJ+UjOJWb\nLVD39lWQBBPXTh01xb0xgzgbCeZRLAKbVKUw1WqS7kmJvn02ILQUiEWGBUx9\n851R\r\n=Bk8g\r\n-----END PGP SIGNATURE-----\r\n","size":19047,"noattachment":false,"key":"/fast-png/-/fast-png-5.0.0.tgz"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib-esm/index.js","gitHead":"e752e0f53139522523a3cba1a3a3fc4bb1482c82","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","tsc-cjs":"tsc --project tsconfig.cjs.json","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"},"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.12.1","description":"PNG image decoder and encoder written entirely in JavaScript","directories":{},"_nodeVersion":"13.1.0","dependencies":{"pako":"^1.0.10","iobuffer":"^5.0.1","@types/pako":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","pngjs":"^3.4.0","eslint":"^6.6.0","rimraf":"^3.0.0","ts-jest":"^24.1.0","prettier":"^1.19.1","typescript":"^3.7.2","@types/jest":"^24.0.22","@types/node":"^12.12.7","eslint-plugin-jest":"^23.0.3","eslint-plugin-import":"^2.18.2","eslint-config-cheminfo":"^2.0.4","eslint-plugin-prettier":"^3.1.1","@typescript-eslint/parser":"^2.7.0","@typescript-eslint/eslint-plugin":"^2.7.0","eslint-config-cheminfo-typescript":"^4.1.2"},"_npmOperationalInternal":{"tmp":"tmp/fast-png_5.0.0_1573557896861_0.07569304410885924","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":1573557896964,"_cnpm_publish_time":1573557896964,"dist-tags":{"latest":"8.0.0"}}