Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A JavaScript library to use ICO.
Work on both Node.js and Browser.
var fs = require('fs');
var ICO = require('icojs');
var arrayBuffer = new Uint8Array(fs.readFileSync('favicon.ico')).buffer;
var images = ICO.parse(arrayBuffer);
Prerequisite: icojs relies on node-canvas, and you must have installed cairo. Please see node-canvas wiki for installation instructions.
npm install icojs
bower install icojs
And add to HTML:
<script type="text/javascript" src="/path/to/ico.js"></script>
To fully use this library, browsers must support JavaScript typed arrays and Canvas API.
Google Chrome, Internet Explorer 11, Mozilla Firefox and Safari 7.1 support these functions.
http://egy186.github.io/icojs/#demo
Parse ICO and return some PNGs.
buffer
ArrayBuffer - The ArrayBuffer object contain the TypedArray of a ICO file.width
Number - Image width.height
Number - Image height.bit
Number - Image bit depth.buffer
ArrayBuffer - Image buffer.Check the ArrayBuffer is valid ICO.
buffer
ArrayBuffer - The ArrayBuffer object contain the TypedArray of a ICO file.No conflict.
ICO
Object.MIT license
FAQs
parse ico file
The npm package icojs receives a total of 983 weekly downloads. As such, icojs popularity was classified as not popular.
We found that icojs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.