@mongrelapp/mongreljs

0.0.10 • Public • Published

Javascript client for Mongrel

Installing

Using npm:

$ npm install @mongrelapp/mongreljs

Using bower:

$ bower install @mongrelapp/mongreljs

Using yarn:

$ yarn add @mongrelapp/mongreljs

Quick Start:

const mongrelDB = require("@mongrelapp/mongreljs");

const db = mongrelDB({
  database: "DATABASE_ID",
  token: "API_TOKEN",
});

Get:

db.get("example")
    .then((resp) => console.log(resp.value))
    .catch(console.error);

Put or Update:

db.put("example", "this is an example value")
    .then((resp) => console.log(resp.value))
    .catch(console.error);

Delete:

db.delete("example")
    .then((resp) => console.log(resp))
    .catch(console.error);

Documentation

you can find all the documentation here for the mongrel module

License

MIT

Package Sidebar

Install

npm i @mongrelapp/mongreljs

Homepage

mongrel.app

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

4.72 kB

Total Files

3

Last publish

Collaborators

  • smiley717
  • antoneking