0.1.5 • Published 10 years ago

svg-scaler v0.1.5

Weekly downloads
39
License
WTFPL
Repository
github
Last release
10 years ago

SVG Scaler

Build Status Dependencies

Scale svg size;

Usage

npm install svg-scaler

ands

 var svgscaler = require('svg-scaler');

 gulp.src('src/*.svg')
     .pipe(svgscaler({ width: number })) // options
     .pipe(gulp.dest('./dest/svg/'))

options

noSvgo

type:boolean, default is false, if you want remain more detail, please set it true;

width

type:number, will make the svg scale to the size by the number, will fix to square, unity all svg files to same size.

scale

type:number, just normal scale, but if have the width or the height option, the scale will not work.

Warning

  • not support image in svg.
  • because use phantom, so need some special configuration. please see the Gruntfile, same for gulp.

Thanks

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago