Skip to content

NOD-studios/debug-with-package-name

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published