persistent app config storage for electron
npm install @anujdatar/electron-appconfigModule for persistant configuration storage for electron apps. Basically a clone of electron-store but uses @anujdatar/appconfig instead of conf. Because of write-file-atomic issues with chown permission error and Snaps under strict confinement.
Install package
``bash`
npm i @anujdatar/electron-appconfig
For beta package, if a newer test version exists
`bash`
npm i @anujdatar/electron-appconfig@next
`js
const appConfig = require('@anujdatar/electron-appconfig')
const conf = appConfig()
conf.set(key, value) // adds { key: value } to the store
conf.get(key) // returns value
conf.delete(key) // removes { key: value } from store
`
use npm run build to compile index.js in src folder. Output in lib folder.
Issues
appconfig` persistent app config storage for node apps
MIT Copyright (c) 2019 Anuj Datar