Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  src
  test
  package.json
  .npmignore
  README.md
  gulpfile.js
  Makefile
Size: Mime:
  README.md

#loop-ping Simple configurable event loop lag detector

Download

Gemfury

Gemfury Info

Setup your project to proxy from Gemfury

Create a .npmrc file at the root of your application. The registry path should use our group user account.

registry=https://npm-proxy.fury.io/P2NoU4CksQg5WPReyUxy/xogroupinc/
strict-ssl=true
ca=

After, run the below command

npm install --save loop-ping

Example

require("loop-ping")();

Setup

A options object is used for setting up loop-ping. The constructor will extend the input with the default. So partial input will still result in a fully operable setup context.

Options

  • checkIntervalMs : The frequency for initiating a ping against the event loop (default = 2000).
  • warnDelayMs : Warn if event loop delay is greater than or equal to this value (default = 500).
  • logger : Supplement a logger for loop-ping to use. By default, it will log to console.
  • info : Logger must have an info interface accepting a json string [required].
  • warn : Logger must have a warn interface accepting a json string [required].

Example of options setup

var options = {
  checkIntervalMs : 500,
  warnDelayMs : 50,
  logger : {
    info : function(message){
        console.log(message);
    },
    warn : function(message){
        console.warn(message);
    }
  }
};

require("loop-ping")(options);

Maintenance

Configure Project

Install the dependencies for this project.

npm install

Test Project

Run mocha test for this project.

npm test

Push Build to Gemfury

This will run all of the test, npm pack the build to /builds/Release and then finally push the package to Gemfury

npm run build