debug-inspect

1.0.0 • Public • Published

debug-inspect

Got tired of writing

const util = require('util');
const debug = require('debug')('some:name:space');

debug(util.inspect(obj, { depth: 10 }));

🎉

npm i debug-inspect
const debugInspect = require('debug-inspect')('some:name:space');
debugInspect({ a: { b: { c: { d: { e: { greetings: 'Hello from e'}}}}}});

Use debug already? Want to avoid

const debug = require('debug')('some:name:space');
const debugInspect = require('debug-inspect')('some:name:space');

🎉

const debug = require('debug')('some:name:space');
const debugInspect = require('debug-inspect')(debug);

Readme

Keywords

Package Sidebar

Install

npm i debug-inspect

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • saintedlama