Simple data persistence for Electron app, It's Thread safety, Can be called directly from the main process and the renderer process.
$ npm install electron-data-storage
or
$ yarn add electron-data-storage
import storage from 'electron-data-storage'
storage.set('hi', 'Hello World!')
storage.get('hi')
storage.remove('hi')
storage.clear()
You can require this module in Electron main or renderer process.
storage.set(key, value)
const value = storage.get(key)
console.log(value)
storage.remove(key)
storage.clear()
Use Jest, edit in test/index.tset.ts
$ yarn test
Contributions are welcome! please open issues and pull request :)
The project is licensed under the MIT license.