Skip to content

like npm.im/debug with automatic module name branding

License

Notifications You must be signed in to change notification settings

TooTallNate/autodebug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autodebug

npm.im/debug but automatic

usage

var debug = require('autodebug')
debug('hello')

example

  autodebug:test.js test +0ms
  autodebug:test/test.js test in another file +0ms

Based on the debug module you know and love, but it automatically fills in the package name and relative file path for you to reduce boilerplate.

api

just require in in each module you want to debug from and call it with things you want to debug

just like the original debug module, you can control which modules' debug output is shown with the DEBUG environment variable. See https://www.npmjs.com/package/debug#usage

installation

$ npm install autodebug

contributors

license

ISC. (c) MMXV jden jason@denizac.org. See LICENSE.md

About

like npm.im/debug with automatic module name branding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%