New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iconic

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconic

## TODO

  • 0.0.7
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-46.43%
Maintainers
1
Weekly downloads
 
Created
Source

Iconic: SVG-icons library

TODO

Browser

  • Icons loading with pack in browser
  • Create icon's page
  • Improve search mechanisms

Configuration

  • width
  • height
  • classes
  • packUrl
  • minify
  • forceNormalize
  • iconsPath
  • onlyExists

Icons pack

// Create pack
var pack = iconic.pack({
    // URL where will be stored SVG-file
    packUrl: '/static/icons/iconic.svg',
    // Minify HTML & SVG
    minify: true
});

// Add icons
var htmlIcon1 = pack.icon('animals.ant', 'my-icon1 my-icon2');
var htmlIcon2 = pack.icon('camera.film-roll', {
    classes: 'my-icon1 my-icon2'
});
var htmlIcon3 = pack.icon('best-films.batman');

// Get CSS
var css = pack.getStyles();

// Get SVG file content
var svg = pack.getCode();
// or write into file
pack.write('icons.svg');

Get data

Get icon content (only paths):

var content = iconic.getShape('animals.ant', config);

Resolve icon's filename:

var filename = iconic.getFilename('animals.ant');

Build SVG-file:

var svgCode = iconic.compilePack(['icon1.name', 'icon2.name']);

Convert

Convert to PNG:

iconic
    .convertToPng(source, width, height)
    .then(function (data) {
        
    });

Convert to JPEG:

iconic
    .convertToJpeg(source, width, height)
    .then(function (data) {
        
    });

FAQs

Package last updated on 16 Aug 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