UNPKG

compromise

Version:
11 lines (9 loc) 423 B
/** log the decision-making to console */ const verbose = function (set) { const env = typeof process === 'undefined' || !process.env ? self.env || {} : process.env //use window, in browser env.DEBUG_TAGS = set === 'tagger' || set === true ? true : '' env.DEBUG_MATCH = set === 'match' || set === true ? true : '' env.DEBUG_CHUNKS = set === 'chunker' || set === true ? true : '' return this } export { verbose }