Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/saintedlama/debug-inspect
- Owner: saintedlama
- Created: 2016-04-12T08:27:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T08:27:14.000Z (over 8 years ago)
- Last Synced: 2024-11-08T00:48:36.551Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```