Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Converts a bunch of SVG icons to CSS data URLs with PNG fallbacks. Inspired by grunticon, but simpler and not requiring grunt.
Takes an array of file paths and an options object. Available options are:
defaultWidth: default icon width in pixels, when unspecified by the SVG file. The default is 32
.
defaultHeight: default icon height in pixels, when unspecified by the SVG file. The default is 32
.
cssPath: path to generated CSS file. The default is icons.css
.
pngDir: path to the directory where PNG files are placed, which will be created if nonexistent. The default is png
.
cssUrlPrefix: path to PNG files used by CSS URLs. By default, the value of pngDir is used.
cssSelector: a function taking an SVG path and a variant (see below) as arguments, and returning the CSS selector for the variant. The default is .icon-#{base}#{selector}
, where
base is the basename of the SVG path, converted to lowercase, and with all characters other than letters, digits, hyphen and underscore removed.
selector is variant.selector.
variantsOnly: if true, only build the specified variants (see below). By default, the unmodified icon is also built.
variants: a (possibly empty) array of objects with keys:
Variants allow the creation of alternative versions of the icons by transforming the SVG (e.g., change the color on hover).
FAQs
Converts a bunch of SVG icons to CSS data URLs with PNG fallbacks.
The npm package iconize receives a total of 5 weekly downloads. As such, iconize popularity was classified as not popular.
We found that iconize 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.