1.0.1 • Published 4 years ago

jsonblobs v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

:gem: jsonblobs

Javascript Wrapper for JSONBlob API Create a cloud JSON file, read and edit. SIMPLE AND EASY.

Example

const jsonblob = require("./jsonblob");

(async function() {
    const jb = jsonblobs();

    let blob = await jb.create({ hello: "world" });

    console.log(blob);
    // Object {
    //     id: '68e6117a-5a46-11ea-bd1e-4b1f30fee893',
    //     url: 'https://jsonblob.com/api/jsonBlob/68e6117a-5a46-11ea-bd1e-4b1f30fee893',
    //     data: { hello: 'world' }
    // }

    let update = await jb.update(blob.id, { world: "hello" });

    console.log(update);
    // Object {
    //     id: '68e6117a-5a46-11ea-bd1e-4b1f30fee893',
    //     url: 'https://jsonblob.com/api/jsonBlob/68e6117a-5a46-11ea-bd1e-4b1f30fee893',
    //     new_data: { hello: 'world' }
    // }

    let content = await jb.read(blob.id);

    console.log(content);
    // Object { world: "hello" }
})();
1.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago