Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iconr

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconr

CLI tool that consumes a directory of SVG images and outputs a CSS file of inlined data as well as a directory of PNG images for fallback if necessary.

  • 0.8.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Dependency Status Build Status bitHound Score Downloads

iconr

Description

CLI tool that consumes a directory of SVG images and outputs a CSS file of inlined data as well as a directory of PNG images for fallback if necessary.

iconr screenshot

Usage

iconr [inputDirectory] [outputDirectory] -options

Options

longNameshortNamedescription
analyticsaDisplays a summary of application process tasks
base64bBase64 encode SVG data URI (fallback PNG is always Base64)
classnamecSet a prefix for css classes (default classname is SVG filename)
debugdDebug mode: will output additional information for development
filenamefSet filename of css output (default is iconr.css)
helphOutput usage information
killcommentkRemoves the 'generated by iconr' CSS comment
nopngnSuppress creation of PNG fallback images (needed for < IE8)
nopngdataNSuppress creation of PNG fallback data URI (needed for IE8)
optimizesvgoWill attempt to optimize the SVG to minimize file size
prettypOutput CSS in a 'beautified' format
separatecsssCreate separate stylesheets for IE
stdoutSOutput CSS to stdout instead of saving to a file
verbosevVerbose mode: log application progress to the console
versionVOutput version number

Installing

  npm install -g iconr

Dependencies

Expects Modernizr classes on front-end.

Contributing to iconr

Contributions and pull requests are very welcome. Please follow these guidelines when submitting new code.

  1. Make all changes in ./src, not in ./lib, which is a build target.
  2. Use npm install -d to install the correct development dependencies.
  3. Use gulp watch to generate iconr's compiled JavaScript files as you code.
  4. Submit a Pull Request using GitHub.

License

Released under the MIT License.

Keywords

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc