Skip to content

junosuarez/autodebug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autodebug

https://npm.im/debug but with automatic namespacing

Build Status

usage

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

example

  autodebug:foo test +0ms
  autodebug:foo:bar 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 autodebug 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 jason@denizac.org. See LICENSE.md