0.0.5 • Published 7 years ago

svgo-diff v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

svgo-diff

Tool for optimizing SVG's with SVGO and checking visual difference.

How to use

$ npm install svgo-diff --save-dev
const svgoDiff = require('svgo-diff');

svgoDiff({ /* options */ });

svgoDiff({
    overwrite: true, // overwrite source files - {bool} default false
    sources: ['./some-dir/1.svg', '/path/some-dir/2.svg'], // source files - {array} default false
    diffPath: '/._diff', // tmp dir for diff files - {string}
    outputPath: './_dist', // destination for optimized SVG's - {string}
    sourcePath: `./_svg`, // source dir - {string}
    svgoConfigPath: './svgo.yml' // SVGO config path - {string}
});