blessing

1.0.0 • Public • Published

Blessing

Blessing is a CaaS (counter as a service). Its sole function is to increment a counter online.

Usage

var Blessing = require('blessing');
 
// increments the counter
var bless = new Blessing("Blessing's Name", console.log, {
    host: 'host.com',
    path: '/path',
    port: 80
});
bless.count();
 
// gets the counter
bless.fetch(callback).then(res => {
    // res.response will be of the type
    // {
    // counter: 56,
    // name: 'given name'
    // }
}
}).catch(e => {});
 

IMPORTANT: Even though Blessing is an object, it stores its ID, which means you can only have one blessing per application.

Parameters

new Blessing(name);
new Blessing(logger);
new Blessing(params);
 
new Blessing(name, logger, params);
new Blessing(name, params);
new Blessing(logger, params);

Self Host

Blessing stores the counters at blessing.jocolina.com, however you can host your own server here

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i blessing

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • jsmrcaga