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
- Host: GitHub
- URL: https://github.com/vikbert/json-files-merger
- Owner: vikbert
- License: mit
- Created: 2019-11-22T14:58:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-21T13:38:22.000Z (over 5 years ago)
- Last Synced: 2025-06-03T15:26:17.011Z (10 months ago)
- Topics: js, json, node
- Language: JavaScript
- Homepage:
- 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
# 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