browser-jsonstore
v1.0.1
Published
Official jsonstore library for the browser
Downloads
6
Readme
Official jsonstore library for the browser
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
Usage
Add jsonstore to your website
<html>
<head>
<title>...</title>
<script src="https://cdn.jsdelivr.net/npm/browser-jsonstore/dist/bundle.min.js"></script>
</head>
<body>
...
</body>
</html>
or
npm i browser-jsonstore
const jsonstore = require('browser-jsonstore');
Initiate with your token
const db = jsonstore('<Your personal token>')
Store data
await db.post('users/1', { name: 'jon snow', age: 31 });
Retrive data
const firstUser = await db.get('users/1');
console.log(firstUser.name); // jon snow
Delete data
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.