Neurological Phenomenon Multiplexer
    Wondering what’s next for npm?Check out our public roadmap! »

    electron-settings
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.2 • Public • Published

    Electron Settings

    A simple and robust settings management library for Electron.

    Born from Atom's original internal configuration manager and the settings manager of choice for Electron's own API Demos app, Electron Settings allows you to persist user settings and other data between app loads simply and easily.

    Npm version Npm downloads David Travis


    Install

    npm install electron-settings
    

    Demo

    import settings from 'electron-settings';
     
    await settings.set('color', {
      name: 'cerulean',
      code: {
        rgb: [0, 179, 230],
        hex: '#003BE6'
      }
    });
     
    await settings.get('color.name');
    // => "cerulean"
     
    await settings.get('color.code.rgb[1]');
    // => 179

    API Docs

    API docs and can be found at electron-settings.js.org.




    Having trouble? Get help on Gitter.

    Install

    npm i electron-settings

    DownloadsWeekly Downloads

    8,464

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    48.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar