electron-local-key-value
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

electron-local-key-value

Local Store Key Value For Electron

Install

npm install electron-local-key-value

Usage

This package can use both main process and renderer process


const Store = require('electron-local-key-value');
const storage = new Store({
    filename: 'app-config',
    default: {}
});

storage.set('KEY', 'value');

console.log(storage.get('KEY'));
// Result : 'value';

console.log(storage.get('KEY_NOT_FOUND'));
// Result : underfined;

store.commit(); // Save to file

Package Sidebar

Install

npm i electron-local-key-value

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

6.24 kB

Total Files

9

Last publish

Collaborators

  • johnmvn