Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shinnn/gulp-flex-svg
- Owner: shinnn
- License: mit
- Created: 2014-02-24T07:37:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T23:52:01.000Z (over 9 years ago)
- Last Synced: 2024-04-14T10:16:05.761Z (7 months ago)
- Language: JavaScript
- Size: 348 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).