0.0.10 • Published 3 years ago

@mongrelapp/mongreljs v0.0.10

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

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

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago