Repository URL to install this package:
|
Version:
1.0.7 ▾
|
| src |
| test |
| package.json |
| .npmignore |
| README.md |
| gulpfile.js |
| Makefile |
#loop-ping Simple configurable event loop lag detector
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
require("loop-ping")();
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.
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].var options = { checkIntervalMs : 500, warnDelayMs : 50, logger : { info : function(message){ console.log(message); }, warn : function(message){ console.warn(message); } } }; require("loop-ping")(options);
Install the dependencies for this project.
npm run clean
Run mocha test for this project.
npm test
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