1.2.0 • Published 3 years ago

@anujdatar/electron-appconfig v1.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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-appconfig

For beta package, if a newer test version exists

npm i @anujdatar/electron-appconfig@next
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

Contributing

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

1.2.0

3 years ago

1.1.2

5 years ago

1.1.1-2

5 years ago

1.1.1-1

5 years ago

1.1.1-0

5 years ago

1.1.0

5 years ago

1.0.1-0

5 years ago