https://github.com/itsjimi/store-data
๐พ Finally, the simplest way to store data
https://github.com/itsjimi/store-data
database javascript nodejs storage
Last synced: 12 months ago
JSON representation
๐พ Finally, the simplest way to store data
- Host: GitHub
- URL: https://github.com/itsjimi/store-data
- Owner: ItsJimi
- License: mit
- Created: 2017-04-01T19:06:43.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T18:57:06.000Z (over 2 years ago)
- Last Synced: 2024-04-23T02:38:28.788Z (about 2 years ago)
- Topics: database, javascript, nodejs, storage
- Language: JavaScript
- Homepage: https://itsjimi.github.io/store-data/
- Size: 839 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# store-data
[](https://github.com/ItsJimi/store-data/actions/workflows/test.yml)
[](https://standardjs.com)
[](https://github.com/ItsJimi/store-data/blob/master/LICENSE)
Finally, the simplest way to store data
## Features
- ๐ Very simple
- ๐งท Sync & Async
- ๐ก Types included
## Install
```
npm i store-data
```
## Examples
See [typescript](https://github.com/ItsJimi/store-data/blob/main/examples/advance.ts) and [javascript](https://github.com/ItsJimi/store-data/blob/main/examples/basic.js) examples [here](https://github.com/ItsJimi/store-data/tree/main/examples).
```javascript
const Store = require('store-data')
const users = new Store({
save: false
})
await users.set('id-1', { name: 'Jimi', dev: true })
const user = await users.get('id-1')
console.log(user) // { name: 'Jimi', dev: true }
```
## Docs
All functions are documented with jsdoc on [store-data website](https://itsjimi.github.io/store-data).
## Contribute
Feel free to fork and make pull requests
## License
[MIT](https://github.com/ItsJimi/store-data/blob/master/LICENSE)