Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saintedlama/debug-inspect

Like debug(util.inspect(obj, { depth: 10 })); but shorter
https://github.com/saintedlama/debug-inspect

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# debug-inspect

Got tired of writing

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

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

:tada:

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');
```

:tada:

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