/debug-prefix-package-name

Auto prefixes package name with debugger

Primary LanguageJavaScriptMIT LicenseMIT

@nod/debug-with-package-name

Auto prefixes debug module with package name

import debug from '@nod/debug-with-package-name'

debug()('description %O', {foo: 'bar'}) // your-package-name  description: { foo: bar }
const optionaExtraParam = 'optional-param'

debug(optionaExtraParam)('description %O', {foo: 'bar'}) // your-package-name/optionalParam  description: { foo: bar }