【文件属性】:
文件名称:loaded-bases
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-21 05:45:58
JavaScript
装基数
诊断双重回调的模块
用
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
【文件预览】:
loaded-bases-master
----.gitignore(19B)
----README.md(501B)
----package.json(600B)
----index.js(425B)
----test.js(500B)