Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-settings

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-settings - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

2

package.json
{
"name": "electron-settings",
"version": "3.1.2",
"version": "3.1.3",
"description": "A simple persistent user settings framework for Electron.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,17 +31,23 @@ electron-settings

```js
const { app } = require('electron');
const settings = require('electron-settings');
settings.set('name', {
first: 'Cosmo',
last: 'Kramer'
});
app.on('ready', () => {
settings.get('name.first');
// => "Cosmo"
settings.set('name', {
first: 'Cosmo',
last: 'Kramer'
});
settings.has('name.middle');
// => false
settings.get('name.first');
// => "Cosmo"
settings.has('name.middle');
// => false
});
```
:warning: **Please note:** Any and all interaction with electron-settings must be executed after the Electron app has fired the `ready` event, otherwise your app may encounter unexpected errors or data loss.
Resources

@@ -48,0 +54,0 @@ ---------

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