An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


Logo

## 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.