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

https://github.com/t1st3/grunt-muxml

An XML parsing and formatting plugin for Grunt
https://github.com/t1st3/grunt-muxml

formatter grunt grunt-plugin parser stream xml

Last synced: 11 months ago
JSON representation

An XML parsing and formatting plugin for Grunt

Awesome Lists containing this project

README

          

# grunt-muxml [![Build Status Travis](https://travis-ci.org/t1st3/grunt-muxml.svg?branch=master)](https://travis-ci.org/t1st3/grunt-muxml) [![Coverage Status](https://codecov.io/gh/t1st3/grunt-muxml/badge.svg?branch=master)](https://codecov.io/gh/t1st3/grunt-muxml?branch=master)

> An XML parsing and formatting plugin for [`Grunt`](http://gruntjs.com/)

Thin wrapper around [`muxml`](https://github.com/t1st3/muxml) to make it a Grunt plugin.

Also available as a [gulp plugin](https://github.com/t1st3/gulp-muxml).

## Install

```
$ npm install --save-dev grunt-muxml
```

## Usage

```js
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
muxml: {
dist: {
files: [{
expand: false,
cwd: 'fixtures/',
src: '*initial.xml',
dest: 'tmp/'
}],
options: {
strict: true
}
}
}
});

grunt.loadNpmTasks('grunt-muxml');

grunt.registerTask('default', [
'muxml'
]);
};
```

## 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
* [gulp-muxml](https://github.com/t1st3/gulp-muxml) | muxml as a [`gulp`](http://gulpjs.com/) plugin

## License

MIT © [t1st3](https://t1st3.com)