merge-properties-files
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

Merge Properties Files for NodeJS (typings included)

Merge properties files from several sources.

Getting Started

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 */ });

mergePropertiesFiles(...paths: string[]): object

Will merge properties files synchronically and return a merged object. If file doesn't exist or null, then function would pass it.

savePropertiesFile(path: string, properties: object): Promise

Async function that saves object as properties file.

Readme

Keywords

Package Sidebar

Install

npm i merge-properties-files

Weekly Downloads

1

Version

1.1.6

License

ISC

Unpacked Size

18.9 kB

Total Files

15

Last publish

Collaborators

  • iceekey