@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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    2

    Version

    4.0.3

    License

    Apache-2.0

    Unpacked Size

    59.1 kB

    Total Files

    17

    Last publish

    Collaborators

    • jacopkane
    • old-nod