Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t1st3/gulp-muxml
An XML parsing and formatting plugin for gulp
https://github.com/t1st3/gulp-muxml
formatter gulp gulp-plugin parser stream xml
Last synced: about 2 months ago
JSON representation
An XML parsing and formatting plugin for gulp
- Host: GitHub
- URL: https://github.com/t1st3/gulp-muxml
- Owner: t1st3
- License: mit
- Created: 2016-07-24T18:49:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T09:19:23.000Z (over 4 years ago)
- Last Synced: 2024-12-02T21:23:34.588Z (2 months ago)
- Topics: formatter, gulp, gulp-plugin, parser, stream, xml
- Language: JavaScript
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# gulp-muxml [![Build Status Travis](https://travis-ci.org/t1st3/gulp-muxml.svg?branch=master)](https://travis-ci.org/t1st3/gulp-muxml) [![Coverage Status](https://codecov.io/gh/t1st3/gulp-muxml/badge.svg?branch=master)](https://codecov.io/gh/t1st3/gulp-muxml?branch=master)
> An XML parsing and formatting plugin for [`gulp`](http://gulpjs.com/)
Thin wrapper around [`muxml`](https://github.com/t1st3/muxml) to make it a gulp plugin.
Also available as a [Grunt plugin](https://github.com/t1st3/grunt-muxml).
## Install
```
$ npm install --save gulp-muxml
```## Usage
```js
const gulp = require('gulp');
const muxml = require('gulp-muxml');gulp.task('default', () => {
return gulp.src('src/*')
.pipe(muxml({strict: true})
.pipe(gulp.dest('dist'));
});
```## API
Supports [streaming mode](https://github.com/gulpjs/gulp/blob/master/docs/API.md#optionsbuffer).
### muxml(options)
#### options
See [`muxml`'s options](https://github.com/t1st3/muxml#options), which are all supported.
## Related
* [muxml](https://github.com/t1st3/muxml) | API for muxml
* [muxml-cli](https://github.com/t1st3/muxml-cli) | CLI for muxml
* [grunt-muxml](https://github.com/t1st3/grunt-muxml) | muxml as a [`Grunt`](http://gruntjs.com/) plugin## License
MIT © [t1st3](https://t1st3.com)