include-svg

0.0.3 • Public • Published

Include SVG

This is WIP!

Get all svg files in a (nested) folder as a javascript object. Uses SVGO to optimize the files first.

Usage

Currently only a stream interface is supported. Examples:

includeSvg('test/files').pipe(process.stdout)
var buffer = '';
includeSvg('test/files')
  .on('data', function (chunk) { buffer += chunk; })
  .on('end'), function () {
    var svgFiles = JSON.parse(buffer);

    ...
  })

/include-svg/

    Package Sidebar

    Install

    npm i include-svg

    Weekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • felx