0.0.3 • Published 8 years ago

booleans v0.0.3

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

Booleans

Access booleans as a service through booleans.io

Installation

npm install booleans

Usage

var Booleans = require('booleans');

Booleans.create().then(function(bool) {
  // { id: '8a56ff37-1adf-4fd4-a5e0-7643af5d343e', val: false}
  return bool.update(true);
}).then(function(bool) {
  // { id: '8a56ff37-1adf-4fd4-a5e0-7643af5d343e', val: true}
  return bool.destroy();
}).then(function(bool) {
  // { id: undefined, val: undefined }
});

var id = '670046ff-49e3-48f9-b3c6-715639e68a47';
Booleans.get(id).then(function(bool) {
  // { id: '670046ff-49e3-48f9-b3c6-715639e68a47', val: false}
});

License

Don't ever use this.

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago