ElectronSettings
Save settings to a disk and load them in when your app starts. A user settings manager for Electron, adapted from Atom/config.
Requires Electron 0.35.0 or above.
Usage
new ElectronSettings([options])
Arguments
Example
To use electron-settings
, first import the class, then create a new electron-settings
instance:
const ElectronSettings = require('electron-settings');
let settings = new ElectronSettings();
console.log(settings.getConfigFilePath());
This will automatically generate a settings.json file in your user data directory if one does not exist. If the file already exists, it will be imported.
Documentation
Contributors
License
MIT