easy-svg-store
Simple SVG Sprite generator. Use it as a component or from the command line!
Last updated 4 years ago by r4k0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install easy-svg-store 
SYNC missed versions from official npm registry.

npm version

easy-svg-store

No Fuzz SVG sprite generator. Just Specify the folder containing the SVG files!

  • Generate SVG SPRITES from the command line!!

The result is a SVG sprite with the given filenames as ID in lowercase

Installation

npm install easy-svg-store

Usage as a component

var path = require('path');
var esvgs = require('easy-svg-store');

// The source folder with the svgs
var mySVGsFolder = path.join(__dirname, 'svgs');

// This will generate a SVG file called svgstore.svg and a HTML file svgstore.html
esvgs(mySVGsFolder, {
        svgSpriteName: 'svgstore', // The desired file name
        outputDirectory: __dirname, // Where you want to output the sprite
        outputHtml: true // Do you want to generate a HTML file to see the result?
      }
);

Usage from the command line

$ esvgs -h

Usage: esvgs [options]

  Options:

    -h, --help                output usage information
    -s, --sprite-name [name]  The name for the generated sprite [default: svgstore.svg].
    -i, --input [dir]         The folder containing the svg files [default: THIS_FOLDER].
    -o, --output [dir]        The destination folder for the output [default: THIS_FOLDER].
    -x, --html                Generate a HTML example [default: false].

Current Tags

  • 1.0.7                                ...           latest (4 years ago)

7 Versions

  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |