gulp-flex-svg

1.1.2 • Public • Published

gulp-flex-svg

NPM version Build Status Build status Coverage Status Dependency Status devDependency Status

flex-svg plugin for gulp

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="50px" height="50px">
</svg>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg">
</svg>

Installation

Use npm.

npm install --save-dev gulp-flex-svg

API

const flexSvg = require('gulp-flex-svg');

flexSvg([options])

options: Object (directly passed to the xml2js.Parser options and the xml2js.Builder options)
Return: Object (stream.Transform)

const gulp = require('gulp');
const flexSvg = require('flex-svg');
 
gulp.task('default', () => {
  return gulp.src('src/**/*.svg')
    .pipe(flexSvg())
    .pipe(gulp.dest('dist'));
});

License

Copyright (c) 2014 - 2015 Shinnosuke Watanabe

Licensed under the MIT License.

Package Sidebar

Install

npm i gulp-flex-svg

Weekly Downloads

5

Version

1.1.2

License

MIT

Last publish

Collaborators

  • shinnn