Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

electron-pref

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

electron-pref

simple preference control for electron

unpublished
latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
2
Created
Source

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

Keywords

electron

FAQs

Package last updated on 17 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts