json-bundler is a Node.js CLI tool for bundling multiple JSON and JSON5 files into a single merged JSON file. Version 1.0.0 is the initial release. It uses a $ref key to reference other JSON files, supports JSON5 for comments and linebreaks, and offers minification and watch mode. Features include merging with priority for the referencing file and support for referencing npm packages via ~. It is designed for tasks like i18n file organization in Angular or other web projects. Requires Node.js 7.6+.
npm install json-bundlerNo compatibility data collected yet for this library.
Install json-bundler, create entry and referenced JSON files, then bundle them into a single output file.
Use paths relative to the file's location.
Be aware of merge priority: referencing file overrides referenced files.
Use `~package-name/path/file.json` to reference npm packages.
Ensure referenced file exists and the path in $ref is correct relative to the referencing file.
Validate JSON5 syntax with a JSON5 parser or use valid JSON.