booleans

0.0.3 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i booleans

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • jeffandersen