Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
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;
ICO.parse(arrayBuffer).then(images => {
// do something
});
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, Canvas API and Promise.
Chrome, Edge 12, Firefox and Safari 9 support these functions.
http://egy186.github.io/icojs/#demo
Promise.<Array.<Object>>
Boolean
ICO
Promise.<Array.<Object>>
Parse ICO and return some PNGs.
Kind: static method of ICO
Returns: Promise.<Array.<Object>>
- Resolves to array of parsed ICO.
width
Number - Image width.height
Number - Image height.bit
Number - Image bit depth.buffer
ArrayBuffer - Image buffer.Param | Type | Description |
---|---|---|
buffer | ArrayBuffer | The ArrayBuffer object contain the TypedArray of a ICO file. |
Boolean
Check the ArrayBuffer is valid ICO.
Kind: static method of ICO
Returns: Boolean
- True if arg is ICO.
Param | Type | Description |
---|---|---|
buffer | ArrayBuffer | The ArrayBuffer object contain the TypedArray of a ICO file. |
ICO
No conflict.
Kind: static method of ICO
Returns: ICO
- ICO
Object.
MIT license
FAQs
parse ico file
The npm package icojs receives a total of 1,034 weekly downloads. As such, icojs popularity was classified as 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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.