https://github.com/bluzi/node-jsonstore
:rocket: Dependency-less, official jsonstore library for Node
https://github.com/bluzi/node-jsonstore
Last synced: over 1 year ago
JSON representation
:rocket: Dependency-less, official jsonstore library for Node
- Host: GitHub
- URL: https://github.com/bluzi/node-jsonstore
- Owner: bluzi
- Created: 2019-12-15T22:11:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:04:48.000Z (over 3 years ago)
- Last Synced: 2025-03-20T15:52:31.826Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.jsonstore.io
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dependency-less, official jsonstore library for Node
### What's jsonstore?
jsonstore is a free single-click datastore available since March 2018 - just visit the website, copy your personal token and you can start storing data online for free.
Visit https://www.jsonstore.io/ or [visit the GitHub repository](https://github.com/bluzi/jsonstore)
### Usage
#### Install the package
```
$ npm i node-jsonstore
```
or
```
$ yarn add node-jsonstore
```
#### Initiate with your token
```js
const jsonstore = require('node-jsonstore');
const db = jsonstore('');
```
#### Store data
```js
await db.post('users/1', {name: 'jon snow', age: 31 });
```
#### Retrive data
```js
const firstUser = await db.get('users/1');
console.log(firstUser.name); // jon snow
```
#### Delete data
```js
await db.delete('users/1');
```
### Contribution
Any issues, suggestions or pull requests are welcome, please create an issue before you make a pull request so we can make sure everybody is on the same page.
### License
This project is licensed under the MIT License.