Simple data persistence for Electron app
npm install electron-data-storage> Simple data persistence for Electron app, It's Thread safety, Can be called directly from the main process and the renderer process.


``sh
$ npm install electron-data-storage
or
$ yarn add electron-data-storage
`
`ts
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: string, value: string | number | boolean)
`ts`
storage.set(key, value)
#### storage.get(key: string): string | number | boolean | undefined
`ts`
const value = storage.get(key)
console.log(value)
#### storage.remove(key: string)
`ts`
storage.remove(key)
#### storage.clear()
`ts`
storage.clear()
Use Jest, edit in test/index.tset.ts
`sh``
$ yarn test
Contributions are welcome! please open issues and pull request :)
The project is licensed under the MIT license.