@nod/debug-with-package-name

4.0.3 • Public • Published

@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.30
4.0.20
4.0.10
4.0.01
3.0.00
2.0.5-00
2.0.4-alpha.00
2.0.30
2.0.20
1.4.7-11
1.4.6-00
1.4.0-10
1.0.30
1.0.20
1.0.10
0.0.0-12
1.0.00
0.2.01
0.1.00
0.0.10
0.0.00

Package Sidebar

Install

npm i @nod/debug-with-package-name

Weekly Downloads

5

Version

4.0.3

License

Apache-2.0

Unpacked Size

59.1 kB

Total Files

17

Last publish

Collaborators

  • jacopkane
  • old-nod