
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
electron-store-data
Advanced tools
A Node.js module to store Electron data in the computer.
# npm
npm i electron-store-data
# pnpm
pnpm add electron-store-data
# yarn
yarn add electron-store-data
// include module
const Store = require('electron-store-data')
// initialize
const storeWindow = new Store({
filename: 'window', // will be window.json
defaults: {
bounds: { x: '', y: '', width: 900, height: 500 }
}
})
// get
console.log(storeWindow.get('bounds'))
// { x: '', y: '', width: 900, height: 500 }
// set
storeWindow.set('bounds', { x: 500, y: 200, width: 800, height: 450 })
// delete
storeWindow.delete('bounds')
// initialize
const storeSubscription = new Store({
filename: 'subscription',
encryption: {
enable: true,
salt: 'XXX',
password: 'XXX',
keylen: '', // optional (default: 32)
algorithm: '' // optional (default: aes-256-cbc)
},
defaults: {
plan: 'basic',
license: 'XXXX-XXXX-XXXX-XXXX'
}
})
Feel free to contribute. Open a new issue, or make a pull request.
FAQs
A Node.js module to store Electron data in the computer.
We found that electron-store-data demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.