New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

electron-pref

simple preference control for electron

  • 1.1.3
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc