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