Dead: jsonstore.io - Node Library
A node wrapper library for www.jsonstore.io
jsonstore.io has been shutdown by the creator. If you are looking for an free object store for your projects, check jsonbase.com We have ported the jsonstore.io library with same APIs: npm - jsonbase.com
Links:
Install
npm install --save jsonstore.io
Examples
Make sure to replace the TOKEN in the examples to your own TOKEN, that can be found at https://www.jsonstore.io/.
Eg. https://www.jsonstore.io/<TOKEN>
Write Data
var jsonstore = // Replace this token with your token.const TOKEN = '3c9622697a53d8b2f3cf825dc4160f7e1aad46c1a759475edeb76bce5cd33a64' let store = TOKEN // Any valid JSON object can be written to given end-pointstore // Inner JSON object/Value can be created or modified using URL type path.store
Read Data
var jsonstore = // Replace this token with your token.const TOKEN = '3c9622697a53d8b2f3cf825dc4160f7e1aad46c1a759475edeb76bce5cd33a64' let store = TOKEN // Reading data from any JSON object returns promise.store // Value of any key can be accessed directly.store
Delete Data
var jsonstore = // Replace this token with your token.const TOKEN = '3c9622697a53d8b2f3cf825dc4160f7e1aad46c1a759475edeb76bce5cd33a64' let store = TOKEN // Pass JSON key to delete.store
If you don't pass any key to delete method then all the data would be deleted.
i.e Root node will be deleted.