Skip to content

Library for merging JSON files by looking at reference inside JSON data.

Notifications You must be signed in to change notification settings

goldingdamien/json-ref-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Library for merging JSON files by looking at reference inside JSON data. In order to reference another JSON file, add an object with a single key "$ref" pointing to the url of the JSON file.

Usage

const JsonRefMerger = require('json-ref-merger')
const merger = new JsonRefMerger({
    urlFormatter: (url) => {return url}
}
merger.parseJsonFile('my-json.json').then(console.log)

Data

See ./example/files for example data.

About

Library for merging JSON files by looking at reference inside JSON data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published