debug-app

1.0.0 • Public • Published

debug-app

debug with a default namespace consisting of the <application name>:<current filename>.

Example

Instead of doing:

var debug = require('debug')('myApp:file');

..use debug-app instead:

var debug = require('debug-app')();

The result is identical, but you won't have to type the app name and the filename over and over again. This is also future-proof in case your app name / filename change.

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i debug-app

    Weekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alessioalex