1.1.3 • Published 7 years ago

electron-pref v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

electron-pref

Build Status

simple preference control for electron

Automatically save your settings in a JSON file under electron.app.getPath('UserData') directory.

This module can be used in both main and renderer process. And works well with webpack.

Translations

中文

install

npm install --save electron-pref

usage

const pref = require('electron-pref');
const setting = pref.from({
	foo: 'bar'
});

console.log(setting.get('foo'));
// -> 'bar'

setting.set('foo', 'baz');
console.log(setting.get('foo'));
// -> 'baz'

license

MIT

1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago