@anujdatar/electron-appconfig
v1.2.0
Published
persistent app config storage for electron
Maintainers
Readme
electron-appconfig
Module 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.
Usage
Install package
npm i @anujdatar/electron-appconfigFor beta package, if a newer test version exists
npm i @anujdatar/electron-appconfig@nextconst 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 storeContributing
use npm run build to compile index.js in src folder. Output in lib folder.
Issues
Related
appconfig persistent app config storage for node apps
License
MIT Copyright (c) 2019 Anuj Datar
