imagemin-svgo
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

imagemin-svgo

SVGO imagemin plugin

7.0.0  •  Updated 1 years ago  •  by imagemin  •  MIT License

SVGO imagemin plugin

Install

$ npm install imagemin-svgo

Usage

const imagemin = require('imagemin');
const imageminSvgo = require('imagemin-svgo');

(async () => {
	await imagemin(['images/*.svg'], 'build/images', {
		use: [
			imageminSvgo({
				plugins: [
					{removeViewBox: 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

Popularity

Weekly Downloads
487.7K
Stars
77

Maintenance

Development

Last ver 2 years ago
Created 6 years ago
Last commit 1 year ago
18 days between commits

Technology

Node version: 8.11.3
3K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

11 contributors
Kevin Martensson
Maintainer, 69 commits, 4 merges, 1 PRs
Works at imagemin yeoman
Sindre Sorhus
Maintainer, 10 commits, 4 merges
shinnn
Maintainer, 12 commits, 1 merges
strarsis
3 commits, 2 PRs
Shogo Sensui
Maintainer, 2 commits, 2 PRs
Works at merpay, mercari
Steven Vachon
1 commits, 1 PRs
Works at Grafana Labs

Tags

compress
image
imageminplugin
img
minify
optimize
svg
svgo
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.