{"name":"decode-gif","version":"0.0.0","main":"index.js","license":"MIT","_id":"decode-gif@0.0.0","dist":{"shasum":"b83b7af21c97ae3259d0f0dd23ab5b8d34defaa6","integrity":"sha512-qsAKp0kwq/eVtdb0imIyr+rWPuDm6Jn2JFqpSWBxOILdVs0bMJb8nLlqcxROvvC3edywxopLc5QOA5d2T2Z7sg==","tarball":"http://registry-npm.ywwl.com/decode-gif/download/decode-gif-0.0.0.tgz","fileCount":2,"unpackedSize":97,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuOtfCRA9TVsSAnZWagAAlr8P/iYaTjqr11+H7aZDpw0O\n5sQsZ2rf7DFnIsq+dKYwA08JAbIK3xTScTBOASmLfukFpYO1drLnYUehC8bt\nDH871kB9SoZvrGtvgrZ5o9Oq8rhSKpfWAtxxyt77ofvJ0qrWGVVC3r/wsWKP\nClEgYtRUJtVK0NHZ6C6jo3DaH9hu15B+Rhk3CmFEYcQim1fOWRobWT4Yi8zP\nLxrPnzkc3vUFAnb9MJh+Ud/XAqt5IAUWz2iFSF5Em6XzJk7wt7SYlRCuEfMs\njQ1dmbWlzmgMGGYYMh6p6LeS5nfd8GfsUKkVnkAJL6ImcPeWkv+AoX0py1Tr\n0siQdgobWuRBOmNke3adqQchf2vjcPfuMj41g58C7OTo6ibS3hlU7QKOVR54\nBwR96rSaXEMYYTxngcipfdmLYNArRgGGlasyERS/K2V9ECx3ywHMIW94Yyi0\nX+wIpt6nJ84ZmR5XKcUCD4NFEVz/M1bMyt3mcJtuX7CPmC0FgyyyNBlE8zsJ\nf8JDGG9oeHJl+p4rffXB2xDCoHWtxTuWzbD8cz0P/2RV3PAC/HeDDHjU/lno\n2MxGj7iGOzHx2NUjJT7Kda7mtsWann5quQyc8UhTZuC/OIUF2qdVmwYDjta1\nK9h3c+agtbe2JZlEIW9ujyXeuR9FYJBBl437BuNXafvx+pb5K8k0GrzCtT7X\nuSyJ\r\n=7sOn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb08thhli6b8j+Uw7hOvTYB3Tnt+Pr1qg3VBKwMfhdvgIgMVuUBory9AOGzOXN3xhGM0zhhmel1PpNbkO7oaDXvzI="}],"size":207,"noattachment":false,"key":"/decode-gif/-/decode-gif-0.0.0.tgz"},"maintainers":[{"name":"richienb","email":"richiebendall@gmail.com"}],"_npmUser":{"name":"richienb","email":"richiebendall@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decode-gif_0.0.0_1589177182471_0.5038816389580458"},"_hasShrinkwrap":false,"readme":"# decode-gif [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/decode-gif/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/decode-gif)\n\nDecode the frames of a gif.\n\n[![NPM Badge](https://nodei.co/npm/decode-gif.png)](https://npmjs.com/package/decode-gif)\n\n## Install\n\n```sh\nnpm install decode-gif\n```\n\n## Usage\n\n```js\nconst fs = require(\"fs\");\nconst decodeGif = require(\"decode-gif\");\n\ndecodeGif(fs.readFileSync(\"unicorn.gif\"));\n/*\n{\n  width: 220,\n  height: 165,\n  frames: [\n    { timeCode: 0, data: [Uint8ClampedArray] },\n\t{ timeCode: 10, data: [Uint8ClampedArray] },\n\t...\n  ]\n}\n*/\n```\n\n## API\n\n### decodeGif(data)\n\n#### data\n\nType: `array-like`\n\nThe gif data. Can be anything array-like such as a `Buffer`, `Array` or `Uint8Array`.\n\n#### Return value\n\n##### width\n\nType: `number`\n\nThe width of the gif.\n\n##### height\n\nType: `number`\n\nThe height of the gif.\n\n##### frames\n\nAn array of each frame of the gif.\n\n##### frame.timeCode\n\nThe time code in milliseconds that the frame appears at.\n\n##### frame.data\n\nThe frame data as a `Uint8ClampedArray`.\n","publish_time":1589177182559,"_cnpm_publish_time":1589177182559,"dist-tags":{"latest":"1.0.1"}}