UNPKG

@lsk4/log

Version:

Yet another logger whitch combines the best features of debug, bunyan, logfmt/logrus, morgan/winston

5 lines (4 loc) 460 B
var c=Object.defineProperty;var p=(t,n)=>c(t,"name",{value:n,configurable:!0});function f(t=""){let n=[],i=[],e,s=(typeof t=="string"?t:"").split(/[\s,]+/);for(e=0;e<s.length;e++){if(!s[e])continue;let o=s[e].replace(/\*/g,".*?");o[0]==="-"?i.push(new RegExp(`^${o.slice(1)}$`)):n.push(new RegExp(`^${o}$`));}return {on:n,off:i}}p(f,"parseNs");var g=f; export { g as default, f as parseNs }; //# sourceMappingURL=out.js.map //# sourceMappingURL=parseNs.js.map