
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.
gif-info is currently only available as a CommonJS module to use with Browserify.
npm install gif-info
A JavaScript library for reading information from animated GIFs
First you need to get the gif file into memory as ArrayBuffer
. This is out of scope of gif-info, but you could for example load it via xhr with responseType
set to arraybuffer
. Then simply pass the data to the function exported by gif-info.
var xhr = require('xhr');
var gifInfo = require('gif-info');
var options = {
url: 'fail.gif',
method: 'GET',
responseType: 'arraybuffer'
};
xhr(options, function(err, response, buffer) {
var info = gifInfo(buffer);
//Now use stuff like info.animated, info.duration or info.width.
});
{
"valid": true,
"globalPalette": true,
"globalPaletteSize": 256,
"loopCount": 0,
"height": 1610,
"width": 899,
"animated": true,
"images": [
{
"identifier": "0",
"localPalette": false,
"localPaletteSize": 0,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "1",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "2",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "3",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
}
],
"isBrowserDuration": false,
"duration": 2800,
"durationIE": 2800,
"durationSafari": 2800,
"durationFirefox": 2800,
"durationChrome": 2800,
"durationOpera": 2800
}
Licence: Do What The Fuck You Want To Public License
FAQs
Library for reading information from animated GIFs
The npm package gif-info receives a total of 301 weekly downloads. As such, gif-info popularity was classified as not popular.
We found that gif-info demonstrated a not healthy version release cadence and project activity because the last version was released 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.