is-animated

2.0.2 • Public • Published

is-animated

npm travis coverage standard standard version

is-animated is a simple library for detecting animated images, it supports not only GIFs, but also APNG and WebP images.

Install

npm install is-animated

Example

const fs = require('fs')
const isAnimated = require('is-animated')

const filename = process.argv[2]

fs.readFile(filename, (err, buffer) => {
  const answer = isAnimated(buffer) ? 'Yes' : 'No'
  console.log(`Is "${filename}" animated? ${answer}.`)
})

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    53,411
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    53,411
  • 2.0.1
    1,699
  • 2.0.0
    599
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i is-animated

Weekly Downloads

55,709

Version

2.0.2

License

MIT

Unpacked Size

9.21 kB

Total Files

7

Last publish

Collaborators

  • qzb