UNPKG

@lsk4/log

Version:

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

10 lines (7 loc) 542 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); 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 u=f; exports.default = u; exports.parseNs = f; //# sourceMappingURL=out.js.map //# sourceMappingURL=parseNs.js.map