# gulp-combine-json

> A plugin for Gulp to combine several JSON files

Latest version **1.0.3** (published 2018-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-combine-json
pnpm add gulp-combine-json
yarn add gulp-combine-json
bun add gulp-combine-json
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-04-09 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Manoj Badam |
| Maintainers | manojbadam |
| Keywords | gulpplugin, json |

## Links

- npm: https://www.npmjs.com/package/gulp-combine-json
- Repository: https://github.com/manojbadam/gulp-concat-json
- Homepage: https://github.com/manojbadam/gulp-concat-json#readme
- Issues: https://github.com/manojbadam/gulp-concat-json/issues
- npm.io page: https://npm.io/package/gulp-combine-json

## Dependencies (2)

- [through](https://npm.io/package/through.md) *
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.0

## Recent versions

- 1.0.3 (latest) — 2018-04-09
- 1.0.2 — 2017-08-02
- 1.0.1 — 2017-08-02

## README

# gulp-concat-json

> A plugin for Gulp to combine several JSON files

## Usage

First, install `gulp-combine-json` as a development dependency:

```shell
npm install --save-dev gulp-concat-json
```

Then, add it to your `gulpfile.js`:

```javascript
var concat_json = require("gulp-combine-json");

gulp.src("api/project/*.json")
	.pipe(concat_json("project.js"))
	.pipe(gulp.dest("dist/api"));
```

## API
Input json files
```
file1.json
[
 {
  "name": "Adam",
  "age": "1",
  "gender": "male"
 }
]

file2.json
[
 {
  "name": "Eve",
  "age": "1",
  "gender": "female"
 }
]
```
Output json file
```
[
 {
  "name": "Adam",
  "age": "1",
  "gender": "male"
 },
 {
  "name": "Eve",
  "age": "1",
  "gender": "female"
 }
]
```
### concat-json(fileName, processor)

#### fileName
Type: `String`  

The output filename

---
_Source: https://npm.io/package/gulp-combine-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
