JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31366
  • Score
    100M100P100Q146557F
  • License MIT

Checks if GIF image is animated

Package Exports

  • is-animated

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-animated) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-animated

npm travis standard coverage

is-animated is a simple library for checking if specified GIF is animated. It doesn't care if gif is valid or not, invalid GIFs are treated as not-animated ones.

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