Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-animated

npm travis coverage standard standard version

DEPRECATION NOTICE

This GitHub repository does not contain active source code for is-animated NPM library. Since 01.09.2026 the package is being maintained in new repository: FRSOURCE/is-animated.

All the new pull requests, issues and other information should be posted there. Thanks for understanding!

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

About

Checks if image is animated 🎞

Topics

Resources

Stars

38 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages