object-inspect
string representations of objects in node and the browser
string representations of objects in node and the browser
Convert bytes to a human readable string: 1337 → 1.34 kB
See nodejs errors with less clutter
Stringify an object/array like JSON.stringify just without all the double-quotes
render nested hierarchies `npm ls` style with unicode pipes
Get a formatted timestamp.
Log things, prefixed with a timestamp.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Convert an object or array into a formatted string
converts a JS object into a nice and readable tree structure for the console
Some tweaks for beautifying HTML with js-beautify according to my preferences.
Easily format the time from node.js `process.hrtime`. Works with timescales ranging from weeks to nanoseconds.
Stringify Object as tree structure
Pretty time zone: `+2` or `-9:30`
Elegant console output, borrowed from Yarn
Slugify a string
Git commit, but play nice with conventions.
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.
Humanize a URL: `https://sindresorhus.com` → `sindresorhus.com`