Nihilist Postmodern Mistake

    svgo-diff

    0.0.5 • Public • Published

    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}
    });

    Keywords

    none

    Install

    npm i svgo-diff

    DownloadsWeekly Downloads

    2

    Version

    0.0.5

    License

    ISC

    Last publish

    Collaborators

    • rudoy