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

https://github.com/vikbert/json-files-merger

Merge the loadable JSON files from given path/folder
https://github.com/vikbert/json-files-merger

js json node

Last synced: 9 months ago
JSON representation

Merge the loadable JSON files from given path/folder

Awesome Lists containing this project

README

          

# JSON Files Merger ✨

## Exammple

Load all json files located in `/json_files` and merge the json data to a single json object.

For example, you have two json fils in folder `/json_files`

```
.examples/json_files
├── 01_user.json
└── 02_home.json
```

```
// .examples/demo.js
const jsonMerger = require("json-files-merger");

const targetFolder = "json_files";
const mergedJsonObject = jsonMerger.load(targetFolder);

console.log(mergedJsonObject);

```

# License

MIT © Xun Zhou