{"_id":"png-chunks-encode","_rev":"3-fe942b27d42296de57bfbbdd1f892f16","name":"png-chunks-encode","description":"Return a fresh PNG buffer given a set of PNG chunks","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"png-chunks-encode","version":"1.0.0","description":"Return a fresh PNG buffer given a set of PNG chunks","main":"index.js","license":"MIT","author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"https://github.com/hughsk"},"dependencies":{"crc-32":"^0.3.0","sliced":"^1.0.1"},"devDependencies":{"png-chunks-extract":"^1.0.0","tap-spec":"^4.1.0","tape":"^4.2.0"},"scripts":{"test":"node test | tap-spec"},"keywords":["png,","buffer,","encode,","recode,","modify,","crc,","buffer,","uint8array"],"repository":{"type":"git","url":"git://github.com/hughsk/png-chunks-encode.git"},"homepage":"https://github.com/hughsk/png-chunks-encode","bugs":{"url":"https://github.com/hughsk/png-chunks-encode/issues"},"gitHead":"24290360e008a9b1504557ec6344bd4a93e25896","_id":"png-chunks-encode@1.0.0","_shasum":"d9ea5e35caeeed782658c1ab7bafa7a5edb1a878","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"dist":{"shasum":"d9ea5e35caeeed782658c1ab7bafa7a5edb1a878","tarball":"https://registry.npmjs.org/png-chunks-encode/-/png-chunks-encode-1.0.0.tgz","integrity":"sha512-J1jcHgbQRsIIgx5wxW9UmCymV3wwn4qCCJl6KYgEU/yHCh/L2Mwq/nMOkRPtmV79TLxRZj5w3tH69pvygFkDqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZy3HGefAMKkUsT16O7fM9PDw1rji9yZ8OecN0M4rt3QIhAM8AvkwnBkTH2zFGDDr3w73bd08ChR3EKzdeQV8u3viX"}]},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}]}},"readme":"# png-chunks-encode\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nReturn a fresh PNG buffer given a set of PNG chunks. Useful in combination with [png-chunks-encode](https://github.com/hughsk/png-chunks-extract) to easily modify or add to the data of a PNG file.\n\nBy adding your own `tEXt` or `zEXt` chunks you have a useful alternative to LSB steganography for making \"magical\" images with \"secret\" data available for your applications: the data is hardly hidden this way, but you can store as much as you like. If you really wanted to, you could probably get away with sneaking a 300MB 3D model in there without too much trouble 👻\n\n## Usage\n\n[![NPM](https://nodei.co/npm/png-chunks-encode.png)](https://www.npmjs.com/package/png-chunks-encode)\n\n### `buffer = encode(chunks)`\n\nTakes an array of `chunks`, each with a `name` and `data`:\n\n``` javascript\n[\n  { name: 'IHDR', data: Uint8Array([...]) },\n  { name: 'IDAT', data: Uint8Array([...]) },\n  { name: 'IDAT', data: Uint8Array([...]) },\n  { name: 'IDAT', data: Uint8Array([...]) },\n  { name: 'IDAT', data: Uint8Array([...]) },\n  { name: 'IEND', data: Uint8Array([]) }\n]\n```\n\nAnd returns a `Uint8Array` containing the raw PNG buffer.\n\n## See Also\n\n* [png-chunks-extract](https://github.com/hughsk/png-chunks-extract)\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/hughsk/png-chunks-encode/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2022-06-24T05:13:05.330Z","created":"2015-10-04T12:51:17.361Z","1.0.0":"2015-10-04T12:51:17.361Z"},"homepage":"https://github.com/hughsk/png-chunks-encode","keywords":["png,","buffer,","encode,","recode,","modify,","crc,","buffer,","uint8array"],"repository":{"type":"git","url":"git://github.com/hughsk/png-chunks-encode.git"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"https://github.com/hughsk"},"bugs":{"url":"https://github.com/hughsk/png-chunks-encode/issues"},"license":"MIT","readmeFilename":"README.md"}