https://github.com/eyolas/gulp-jsonmerge
A plugin for Gulp to merge several JSON files
https://github.com/eyolas/gulp-jsonmerge
Last synced: 6 months ago
JSON representation
A plugin for Gulp to merge several JSON files
- Host: GitHub
- URL: https://github.com/eyolas/gulp-jsonmerge
- Owner: eyolas
- License: wtfpl
- Created: 2015-08-28T12:36:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T12:03:23.000Z (over 10 years ago)
- Last Synced: 2025-01-29T06:21:49.541Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-jsonmerge
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]
> jsonmerge plugin for [gulp](https://github.com/wearefractal/gulp)
## Usage
First, install `gulp-jsonmerge` as a development dependency:
```shell
npm install --save-dev gulp-jsonmerge
```
Then, add it to your `gulpfile.js`:
** This plugin will collect all the json files provided to it, parse them, put them in a file**
```javascript
var jsonmerge = require("gulp-jsonmerge");
gulp.src("./src/*.json")
.pipe(jsonmerge("result.js"))
.pipe(gulp.dest("./dist"));
```
## API
### jsonmerge(fileName)
#### fileName
Type: `String`
The output filename
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
[npm-url]: https://npmjs.org/package/gulp-jsonmerge
[npm-image]: https://badge.fury.io/js/gulp-jsonmerge.png
[travis-url]: http://travis-ci.org/eyolas/gulp-jsonmerge
[travis-image]: https://secure.travis-ci.org/eyolas/gulp-jsonmerge.png?branch=master
[coveralls-url]: https://coveralls.io/r/eyolas/gulp-jsonmerge
[coveralls-image]: https://coveralls.io/repos/eyolas/gulp-jsonmerge/badge.png
[depstat-url]: https://david-dm.org/eyolas/gulp-jsonmerge
[depstat-image]: https://david-dm.org/eyolas/gulp-jsonmerge.png