iconic
Tools for SVG-icons manipulation and icon packs
Last updated 2 years ago by teniryte .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install iconic 
SYNC missed versions from official npm registry.

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(() => {});

Current Tags

  • 0.1.16                                ...           latest (2 years ago)

14 Versions

  • 0.1.16                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.14                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 1
Last Week 1
Last Month 16
Dependencies (8)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |