{"_id":"@ashiteam/ashi-is-animated-image","_rev":"5-f56f6637ddbfe1da088b620921d0fcdb","name":"@ashiteam/ashi-is-animated-image","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.1":{"name":"@ashiteam/ashi-is-animated-image","version":"1.0.1","keywords":["image","animated"],"author":{"name":"Asanga Weerapura"},"license":"ISC","_id":"@ashiteam/ashi-is-animated-image@1.0.1","maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"dist":{"shasum":"b25bb21b0250c3ba92c9766a6f19cef000b98f14","tarball":"https://registry.npmjs.org/@ashiteam/ashi-is-animated-image/-/ashi-is-animated-image-1.0.1.tgz","fileCount":28,"integrity":"sha512-rw7MejQUvXSb57GmVs4ZufRASyt+eWUBSJWy7bVOY3qVY04XlMye006C9Rm861yFSTdqqQyyemSRbrOGqe/XeQ==","signatures":[{"sig":"MEUCIQCSIXZEJmXgIeuQebS0b/W2ER8tKTu0BnK6kTf3jDccgQIgL+GuPVb+QwCPa53inXNONdesc8T3vdasJJFJGoU2JDk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22794},"main":"./cjs/index.js","types":"./mjs/index.d.ts","module":"./mjs/index.js","scripts":{"dist":"npm publish --access public","test":"npm run build && node ./lib/cjs/test.js","build":"npm run dellib && npm run rollup && node ./fixup.js && copyfiles ./package.json ./dist && cd ./dist && npm run fixpackage && npm pack --pack-destination ../ && cd ..","dellib":"del-cli lib/** && del-cli compiled/** && del-cli dist/** && del-cli ./*.tgz","rollup":"rollup -c","fixpackage":"npm pkg delete scripts && npm pkg delete devDependencies && npm pkg delete files[] && npm pkg set main=./cjs/index.js module=./mjs/index.js types=./mjs/index.d.ts files[0]=./**/*","setexports":"cd ./dist && npm pkg set exports[.].types=\"./mjs/index.d.ts\" exports[./cjs].types=\"./cjs/index.d.ts\"","buildpackage":"npm pack","incversionbuild":"npm version patch --no-git-tag-version && npm run build"},"_npmUser":{"name":"asangawee","email":"asangaw@rogers.com"},"_npmVersion":"8.13.2","description":"My library to detect if an image is an animated image.","directories":{},"sideEffects":false,"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"chalk":"^4.1.2","tslib":"^2.3.1","rollup":"^3.19.1","tslint":"^6.1.3","del-cli":"^5.0.0","copyfiles":"^2.4.1","@babel/cli":"^7.21.0","typescript":"^5.0.4","@babel/core":"^7.21.0","@types/node":"^18.15.11","@babel/preset-env":"^7.20.2","rollup-plugin-dts":"^5.2.0","@rollup/plugin-babel":"^6.0.3","rollup-plugin-terser":"^7.0.2","@babel/preset-typescript":"^7.21.0","@rollup/plugin-typescript":"^11.0.0","rollup-plugin-multi-input":"^1.3.3","@rollup/plugin-multi-entry":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1"},"_npmOperationalInternal":{"tmp":"tmp/ashi-is-animated-image_1.0.1_1696168932885_0.04565550045300637","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@ashiteam/ashi-is-animated-image","version":"1.0.2","keywords":["image","animated"],"author":{"name":"Asanga Weerapura"},"license":"ISC","_id":"@ashiteam/ashi-is-animated-image@1.0.2","maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"dist":{"shasum":"a8eae7d3e3fbae552b90fc8903e6d59b36083bfe","tarball":"https://registry.npmjs.org/@ashiteam/ashi-is-animated-image/-/ashi-is-animated-image-1.0.2.tgz","fileCount":30,"integrity":"sha512-62TnelDcnrh5FtJRRSsyUZSQqKnb9CPLtjyeqPUltrQiVsOkHZ0OOHs+BoN1qANxFpQUhj17og4EFMpu68visw==","signatures":[{"sig":"MEQCIFkgWQjBEkJGrpzTo1Jmywgz+iebkmhiuBHBOp87Lv4tAiAucVwtArhswwRCv769CtsT7pn5/Mu97oraJ7kZlachTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24191},"main":"./cjs/index.js","types":"./mjs/index.d.ts","module":"./mjs/index.js","gitHead":"a73de15fee083dd2606416c996424ecdd0512fcf","scripts":{"dist":"npm publish --access public","test":"npm run build && node ./test/index.js","build":"npm run dellib && npm run rollup && node ./fixup.js && copyfiles ./package.json ./dist && copyfiles ./README.md ./dist && cd ./dist && npm run fixpackage && npm pack --pack-destination ../ && cd ..","dellib":"del-cli lib/** && del-cli compiled/** && del-cli dist/** && del-cli ./*.tgz","rollup":"rollup -c","fixpackage":"npm pkg delete scripts && npm pkg delete devDependencies && npm pkg delete files[] && npm pkg set main=./cjs/index.js module=./mjs/index.js types=./mjs/index.d.ts files[0]=./**/*","setexports":"cd ./dist && npm pkg set exports[.].types=\"./mjs/index.d.ts\" exports[./cjs].types=\"./cjs/index.d.ts\"","buildpackage":"npm pack","incversionbuild":"npm version patch --no-git-tag-version && npm run build"},"_npmUser":{"name":"asangawee","email":"asangaw@rogers.com"},"_npmVersion":"8.13.2","description":"My library to detect if an image is an animated image.","directories":{},"sideEffects":false,"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"chalk":"^4.1.2","tslib":"^2.3.1","rollup":"^3.19.1","tslint":"^6.1.3","del-cli":"^5.0.0","copyfiles":"^2.4.1","@babel/cli":"^7.21.0","typescript":"^5.0.4","@babel/core":"^7.21.0","@types/node":"^18.15.11","@babel/preset-env":"^7.20.2","rollup-plugin-dts":"^5.2.0","@rollup/plugin-babel":"^6.0.3","rollup-plugin-terser":"^7.0.2","@babel/preset-typescript":"^7.21.0","@rollup/plugin-typescript":"^11.0.0","rollup-plugin-multi-input":"^1.3.3","@rollup/plugin-multi-entry":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1"},"_npmOperationalInternal":{"tmp":"tmp/ashi-is-animated-image_1.0.2_1696172047760_0.8697255649684115","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@ashiteam/ashi-is-animated-image","version":"1.0.3","keywords":["image","animated"],"author":{"name":"Asanga Weerapura"},"license":"ISC","_id":"@ashiteam/ashi-is-animated-image@1.0.3","maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"dist":{"shasum":"d08c6c84c71e19ab210cf6d5ea0b6b6a1a5eb8f0","tarball":"https://registry.npmjs.org/@ashiteam/ashi-is-animated-image/-/ashi-is-animated-image-1.0.3.tgz","fileCount":28,"integrity":"sha512-mE7p+u2a0QS6SqvEfaRGfs1u4yxKz1nBO4mjuqSZ/UyPmKJmaC2f4oPN9GCra6bv14cudssapTUvAoBBDyiyOQ==","signatures":[{"sig":"MEUCIAwr898COVvxD4MyuWgiv3fPCxSQfP1445mnwMU33m3SAiEA9EV59OEdihYJbqxD1f9oQGhhl9DNYkhUsIhfp2XBDsU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21563},"main":"./cjs/index.js","types":"./mjs/index.d.ts","module":"./mjs/index.js","gitHead":"bdda4078ea6b2ec4f570f75efe7e70c8a080d381","_npmUser":{"name":"asangawee","email":"asangaw@rogers.com"},"_npmVersion":"8.13.2","description":"My library to detect if an image is an animated image.","directories":{},"sideEffects":false,"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ashi-is-animated-image_1.0.3_1696188128879_0.6066756779474642","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@ashiteam/ashi-is-animated-image","version":"1.0.4","keywords":["image","animated"],"author":{"name":"Asanga Weerapura"},"license":"ISC","_id":"@ashiteam/ashi-is-animated-image@1.0.4","maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"dist":{"shasum":"fc7f45b3226e6b22015733052603a42c2cbf134c","tarball":"https://registry.npmjs.org/@ashiteam/ashi-is-animated-image/-/ashi-is-animated-image-1.0.4.tgz","fileCount":28,"integrity":"sha512-8rjUMfWl+G95uu6pE+TVmPbzapbXgTW2nh3z2ymbPC/pDpOX4N9aDBXyF99B67llOs8yPsrmDfkKCVo00+OgoQ==","signatures":[{"sig":"MEUCIQCSkksP+IUOpllAhcfEhuTrqaHoJ30qjnow2qP7rUL+ngIgesm4SBJ552pt1qXpbDz6p4R/ye7nRa34n/0txHD/aqc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21563},"main":"./cjs/index.js","types":"./mjs/index.d.ts","module":"./mjs/index.js","gitHead":"69aa3eb33ab861585e30714740bce0b61eb2db06","_npmUser":{"name":"asangawee","email":"asangaw@rogers.com"},"_npmVersion":"8.13.2","description":"My library to detect if an image is an animated image.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ashi-is-animated-image_1.0.4_1727258235928_0.5675551092296258","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@ashiteam/ashi-is-animated-image","version":"2.0.0","description":"My library to detect if an image is an animated image.","main":"./cjs/index.js","module":"./mjs/index.js","types":"./mjs/index.d.ts","sideEffects":false,"keywords":["image","animated"],"author":{"name":"Asanga Weerapura"},"license":"ISC","_id":"@ashiteam/ashi-is-animated-image@2.0.0","gitHead":"f1f9f47f28fd09e5dea950d2577ce457d6c7d387","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-Md7a4tBtyf9GSJ6OoG/F8+heH2MQLiW1kUVBK6QYk11HVMO32+bZBUgPhfC2e0AyHwxTz6rxibMUBRVaNYXZ0A==","shasum":"98555c2f0bf7e1595815c818bd02b6cb2a9d5092","tarball":"https://registry.npmjs.org/@ashiteam/ashi-is-animated-image/-/ashi-is-animated-image-2.0.0.tgz","fileCount":28,"unpackedSize":21323,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIETEc+aBcuE88Qp+INa+//F3X1lv6FQSArhqYqgC3vOUAiEA3V5gGeRrFwcrYmG3oLck9efDOblToZ/9A0/rfOJKbbo="}]},"_npmUser":{"name":"asangawee","email":"asangaw@rogers.com"},"directories":{},"maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ashi-is-animated-image_2.0.0_1746275116954_0.277112909155381"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-01T14:02:12.793Z","modified":"2025-05-03T12:25:17.374Z","1.0.1":"2023-10-01T14:02:13.034Z","1.0.2":"2023-10-01T14:54:07.921Z","1.0.3":"2023-10-01T19:22:09.036Z","1.0.4":"2024-09-25T09:57:16.118Z","2.0.0":"2025-05-03T12:25:17.174Z"},"author":{"name":"Asanga Weerapura"},"license":"ISC","keywords":["image","animated"],"description":"My library to detect if an image is an animated image.","maintainers":[{"name":"asangawee","email":"asangaw@rogers.com"}],"readme":"# @ashiteam/ashi-is-animated-image\r\n\r\nMy library to detect if an image is an animated image.\r\n\r\n## Description\r\n\r\nYou can pass in a Buffer containing the binary of an image to isAnimated which would return tru or false to indicate if the image is an animated image or not.\r\n\r\n## Usage\r\n\r\n### Web\r\n\r\n```\r\nconst imageUrl = 'https://somesite.com/someimage';\r\nconst fetchedImage = await fetch(imageUrl);\r\nconst imageBuffer = Buffer.from(await fetchedImage.arrayBuffer());\r\nconst imageIsAnimated = isAnimated(imageBuffer)\r\n\r\n```\r\n\r\n### NodeJS\r\n\r\n```\r\nconst pathToImage = './someimage.gif'\r\nconst buffer = fs.readFileSync(pathToImage);\r\nconst imageIsAnimated = isAnimated(buffer);\r\n\r\n```\r\n","readmeFilename":"README.md"}