@nod/debug-with-package-name
v4.0.3
Published
Auto prefixes debug module with package name
Downloads
14
Readme
@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 }
Scripts
yarn start
Starts auto build process
yarn test
Run test
yarn build
Run module
yarn test-once
Run test without watch mode
Development and additional usage
Please see @nod/nod monorepo
License
Apache 2.0