Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blessing

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blessing

Blessing allows you to ask the NodeJS god for blessings for your app, and keeps track of them (cf HTTP counter).

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc