
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@frsource/is-animated
Advanced tools
Detects animated images in browser & node. Supports GIT, APNG & WebP
Getting Started
·
Demo
·
File an Issue
·
Have a question or an idea?
A simple library for detecting animated images.
Works under Node and Browser environments!
Performant & with small bundle size
Supports GIF, PNG, APNG and WebP
Fully typed in Typescript
Published under MIT license
npm install @frsource/is-animated
yarn add @frsource/is-animated
pnpm add @frsource/is-animated
<input type="file" accept="image/*" />
import isAnimated from '@frsource/is-animated';
const input = document.querySelector('input[type="file"]');
input.addEventListener('change', async function () {
const arrayBuffer = await this.files[0].arrayBuffer();
const answer = isAnimated(arrayBuffer) ? 'IS' : 'IS NOT';
alert(`File "${this.files[0].name}" ${answer} animated.`);
});
If you prefer, you can import this library using unpkg:
<script defer src="https://unpkg.com/@frsource/is-animated"></script>
import { readFileSync } from 'fs';
import isAnimated from '@frsource/is-animated';
readFileSync('my-test-file.png', (err, buffer) => {
const answer = isAnimated(buffer) ? 'IS' : 'IS NOT';
console.log(`File "my-test-file.png" ${answer} animated.`);
});
For a working example, check out our demo.
Don’t hesitate to ask a question directly on the discussion board!
Changes for every release are documented in the release notes and CHANGELOG file.
pnpm i
.pnpm test
to run the test suite.pnpm start
and visit http://localhost:3000
to see the documentation page. You can test the library using the demo section.MIT @ 2024-present, Jakub FRS Freisler, FRSOURCE
Forked from qzb's great library: is-animated.
FAQs
Detects animated images in browser & node. Supports GIT, APNG & WebP
The npm package @frsource/is-animated receives a total of 46 weekly downloads. As such, @frsource/is-animated popularity was classified as not popular.
We found that @frsource/is-animated demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.