Socket
Socket
Sign inDemoInstall

is-animated

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-animated

Detects animated images


Version published
Weekly downloads
58K
increased by7.67%
Maintainers
1
Install size
9.79 kB
Created
Weekly downloads
 

Changelog

Source

2.0.2 (2022-01-13)

Bug Fixes

  • apng files with multiple IDAT/fdAT chunks in single frame (69dad3c), closes #16

<a name="2.0.0"></a>

Readme

Source

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

Keywords

FAQs

Last updated on 13 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc