1.1.6 • Published 6 years ago

merge-properties-files v1.1.6

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

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.

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago