Easily manage a configuration file for your application.
Install
npm install readsettings
Usage
const ReadSettings = ; const config = "myConfig.json"; configdata;//=> {} configdatasomeKey = "Hello World!"; configdata;//=> {somekey: "Hello World!"}
API
class
ReadSettings(dir, options?)
dir
Type: string
The directory to store the settings file.
options
Type: Conf.Options<any>
Custom options to pass to conf.
instance
ReadSettings extends Conf
data
Type: object
The currently stored data.