stringify-debug

0.1.1 • Public • Published

stringify-debug

wrapper for debug, stringify object

Example

var debug = require('..')('debug:object');
 
debug('input', undefined, true, null, 1, { x:1, y:2, z:[3,4], w:{ a:5, b:6 } }, f)
 
function f() {
}

output:

⌘ DEBUG=* node example/stdout.js
  debug:object input +0ms undefined true null 1 {"x":1,"y":2,"z":[3,4],"w":{"a":5,"b":6}} [function]f

Dependents (0)

Package Sidebar

Install

npm i stringify-debug

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • zoubin