Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Tools for SVG icons
npm install iconic
iconic --output=bundle.js --element=ui-icon icons/*
Compiling client script:
const iconic = require('iconic');
// Bundles all icons and renders script with webcomponent named 'ui-icon' definition
let bundle = iconic.bundle('ui-icon', {
icon1: svg,
icon2: svg,
icon3: svg,
});
Using icons:
<script src="/path/to/bundle.js"></script>
<h1>
<i><ui-icon name="icon1" /></i>
<span>Iconic</span>
</h1>
const iconic = require('iconic');
// Bundles all icons and renders script with webcomponent named 'ui-icon' definition
let bundle = iconic.bundle('ui-icon', {
icon1: svg,
icon2: svg,
icon3: svg,
});
// Bundles all files in directory
let bundle = iconic.directoryBundle('ui-icon', dirname);
// Creating icon
let icon = iconic.createIcon(source, name);
const iconic = require('iconic');
let icon = iconic.createIcon(source, name);
// Is icon colored
icon.isColored();
// Get [width, height] size
icon.getSize();
icon
// Set monocolored icon color
.setColor('#ff0000')
// Resize icon
.resize(100, 100)
// Clear SVG code
.clear()
// Clear, optimize and set width and height to 100
.normalize()
// Write icon to file
.save('icon.svg');
// Export as PNG
icon.toPNG().then(data => fs.writeFileSync('icon.png', data));
// Export as JPEG
icon.toJPEG(backgroundColor).then(data => fs.writeFileSync('icon.jpeg', data));
const iconic = require('iconic');
let pack = new iconic.Pack();
// Add instance of Icon to pack
pack.addIcon(icon);
// Returns plain object with icon names as keys and svg code as values
pack.toJSON();
// Creates script with icons and webcomponent to display icons
pack.bundle((elementName = 'ui-icon'));
// Is pack contains colored icons
pack.isColored();
ooi
;FAQs
Tools for SVG icons
The npm package iconic receives a total of 15 weekly downloads. As such, iconic popularity was classified as not popular.
We found that iconic 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.