Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shinnn/gulp-flex-svg

flex-svg plugin for gulp
https://github.com/shinnn/gulp-flex-svg

Last synced: 26 days ago
JSON representation

flex-svg plugin for gulp

Awesome Lists containing this project

README

        

# gulp-flex-svg

[![NPM version](https://img.shields.io/npm/v/gulp-flex-svg.svg)](https://www.npmjs.com/package/gulp-flex-svg)
[![Build Status](https://travis-ci.org/shinnn/gulp-flex-svg.svg?branch=master)](https://travis-ci.org/shinnn/gulp-flex-svg)
[![Build status](https://ci.appveyor.com/api/projects/status/7t6wot5vv49423h5?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/gulp-flex-svg)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/gulp-flex-svg.svg)](https://coveralls.io/r/shinnn/gulp-flex-svg)
[![Dependency Status](https://img.shields.io/david/shinnn/gulp-flex-svg.svg?label=deps)](https://david-dm.org/shinnn/gulp-flex-svg)
[![devDependency Status](https://img.shields.io/david/dev/shinnn/gulp-flex-svg.svg?label=devDeps)](https://david-dm.org/shinnn/gulp-flex-svg#info=devDependencies)

[flex-svg](https://github.com/shinnn/node-flex-svg) plugin for [gulp](http://gulpjs.com/)

```xml

```

```xml

```

## Installation

[Use npm.](https://docs.npmjs.com/cli/install)

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

## API

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

### flexSvg([*options*])

*options*: `Object` (directly passed to the [xml2js.Parser](https://github.com/Leonidas-from-XIV/node-xml2js#options) options and the [xml2js.Builder](https://github.com/Leonidas-from-XIV/node-xml2js#options-for-the-builder-class) options)
Return: `Object` ([stream.Transform](https://nodejs.org/docs/latest/api/stream.html#stream_class_stream_transform))

```javascript
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](https://github.com/shinnn)

Licensed under [the MIT License](./LICENSE).