imagemin-svgo
SVGO imagemin plugin
Last updated 9 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install imagemin-svgo 
SYNC missed versions from official npm registry.

imagemin-svgo GitHub Actions Status

SVGO imagemin plugin

Install

npm install imagemin-svgo

Usage

import imagemin from 'imagemin';
import imageminSvgo from 'imagemin-svgo';

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

The buffer to optimize.

Current Tags

  • 12.0.0                                ...           latest (9 months ago)

37 Versions

  • 12.0.0                                ...           9 months ago
  • 11.0.1                                ...           2 years ago
  • 11.0.0                                ...           3 years ago
  • 10.0.1                                ...           5 years ago
  • 10.0.0                                ...           5 years ago
  • 9.0.0                                ...           6 years ago
  • 8.0.0                                ...           7 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.0                                ...           8 years ago
  • 6.0.0                                ...           9 years ago
  • 5.2.4                                ...           9 years ago
  • 5.2.3                                ...           9 years ago
  • 5.2.2                                ...           10 years ago
  • 5.2.1                                ...           10 years ago
  • 5.2.0                                ...           10 years ago
  • 5.1.0                                ...           11 years ago
  • 5.0.1                                ...           11 years ago
  • 5.0.0                                ...           11 years ago
  • 4.2.1                                ...           11 years ago
  • 4.2.0                                ...           11 years ago
  • 4.1.2                                ...           12 years ago
  • 4.1.1                                ...           12 years ago
  • 4.1.0                                ...           12 years ago
  • 4.0.2                                ...           12 years ago
  • 4.0.1                                ...           12 years ago
  • 4.0.0                                ...           12 years ago
  • 3.0.3                                ...           12 years ago
  • 3.0.2                                ...           12 years ago
  • 3.0.1                                ...           12 years ago
  • 3.0.0                                ...           12 years ago
  • 2.1.0                                ...           12 years ago
  • 2.0.0                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.1.1                                ...           12 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 250
Today 5
This Week 22
This Month 131
Last Day 2
Last Week 11
Last Month 83
Dependencies (2)
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE