Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-svgmin

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svgmin - npm Package Compare versions

Comparing version 0.4.8 to 1.0.0

4

index.js

@@ -38,5 +38,5 @@ /* jshint node:true */

// Plugin function
function minifySVGGulp(plugins) {
function minifySVGGulp(options) {
var stream = new Transform({objectMode: true});
var svgo = new SVGOptim({ plugins: plugins });
var svgo = new SVGOptim(options);

@@ -43,0 +43,0 @@ stream._transform = function(file, unused, done) {

{
"name": "gulp-svgmin",
"version": "0.4.8",
"version": "1.0.0",
"description": "Minify SVG files with gulp.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -33,9 +33,19 @@ # [gulp](https://github.com/gulpjs/gulp)-svgmin [![Build Status](https://travis-ci.org/ben-eb/gulp-svgmin.svg?branch=master)](https://travis-ci.org/ben-eb/gulp-svgmin) [![NPM version](https://badge.fury.io/js/gulp-svgmin.svg)](http://badge.fury.io/js/gulp-svgmin) [![Dependency Status](https://gemnasium.com/ben-eb/gulp-svgmin.png)](https://gemnasium.com/ben-eb/gulp-svgmin)

return gulp.src('logo.svg')
.pipe(svgmin([{
removeDoctype: false
}, {
removeComments: false
}]))
.pipe(svgmin({
plugins: [{
removeDoctype: false
}, {
removeComments: false
}]
}))
.pipe(gulp.dest('./out'));
});
```
## Contributing
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
## License
MIT © Ben Briggs

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc