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

Tools for SVG-icons manipulation and icon packs

  • 0.1.2
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

iconic

Tools for SVG-icons manipulation and icon packs

API

Iconic

const iconic = require('iconic');

iconic.createManager(path);

Manager

const iconic = require('iconic');

var pack = iconic.createPack();

var collections = iconic.collections
var collections = iconic.getCollections();

var collection = iconic.getCollection('computer-workers');

var icon = iconic.getIcon('computer-workers.computer-worker-on-back-view');

Collection

const iconic = require('iconic');

var icons = collection.icons;
var icons = collection.getIcons();

var icon = collection.getIcon('computer-worker-on-back-view');

var isExists = collection.exists;
var isExists = collection.isExists();

Icon

const iconic = require('iconic');

var isExists = icon.exists;
var isExists = icon.isExists();

var code = icon.source;
var code = icon.getSource();

var code = icon.resize(w, h);

var code = icon.getPath();

var code = icon.clear();

var code = icon.normalize(w, h);

var code = icon.shape;
var code = icon.getShape();

var isFileNormalized = icon.isFileNormalized();

icon.saveFile();

icon.normalizeFile();

var buffer = icon.toPng(w, h);

icon.savePng(filename, w, h);

icon
  .toJpeg(w, h, background)
  .then(data => {});

icon
  .saveJpeg(filename, w, h, background)
  .then(data => {});

icon.saveAs(filename);

icon.minify().then(code => {});

icon.minifyFile().then(code => {});

Pack

const iconic = require('iconic');

pack.add('view', 'computer-workers.computer-worker-on-back-view');

pack.addMap(data, parentName);

pack.remove(name);

pack.writeIcons(dirname);

pack.writePngIcons(dirname, size);

pack
  .writeJpegIcons(dirname, size, bg)
  .then(() => {});

var code = pack.compileSprite();

pack
  .writeSprite(filename, minify)
  .then(() => {});

FAQs

Package last updated on 28 Dec 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