loaded-bases

1.0.0 • Public • Published

loaded-bases

A module to diagnose double callbacks

Use

var lb = require('loaded-bases');

functionToDiagnose('arg', lb(function(err, result) {
    // Will only be called once, and a warning will be emitted if something tries to call it again. Stacks will be included.
}));

functionToDiagnose('arg', lb(function(err, result) {
    // Will only be called once
}, function (last, now) {
    // last is the stack of the first call, now is the stack of the second call
});

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 loaded-bases

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • aredridel