Merge properties files from several sources.
Install using npm:
npm install merge-properties-files
Import to your project and use it:
// import functions
const { mergePropertiesFiles, savePropertiesFile } = require("merge-properties-files");
// merge as many files as you want
const merged = mergePropertiesFiles("a.properties", "b.properties", ...);
// save merged properties file
savePropertiesFile("path/to/save", merged).then(() => { /* Saved */ });
Will merge properties files synchronically and return a merged object. If file doesn't exist or null, then function would pass it.
Async function that saves object as properties file.