imagemin-svgo
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/imagemin-svgo package

    10.0.1 • Public • Published

    imagemin-svgo GitHub Actions Status

    SVGO imagemin plugin

    Install

    $ npm install imagemin-svgo
    

    Usage

    import imagemin from 'imagemin';
    import imageminSvgo from 'imagemin-svgo';
    
    (async () => {
    	await imagemin(['images/*.svg'], {
    		destination: 'build/images',
    		plugins: [
    			imageminSvgo({
    				plugins: [{
    					name: 'removeViewBox',
    					active: false
    				}]
    			})
    		]
    	});
    
    	console.log('Images optimized');
    })();

    API

    imageminSvgo([options])(buffer)

    Returns a Promise<Buffer>.

    options

    Type: Object

    Pass options to SVGO.

    buffer

    Type: Buffer

    Buffer to optimize.

    License

    MIT © imagemin

    Install

    npm i imagemin-svgo

    DownloadsWeekly Downloads

    730,119

    Version

    10.0.1

    License

    MIT

    Unpacked Size

    2.98 kB

    Total Files

    4

    Last publish

    Collaborators

    • nothingismagick
    • sindresorhus
    • kevva
    • shinnn
    • 1000ch
    • bradbaris
    • xhmikosr