Skip to content

Instantly share code, notes, and snippets.

@alexhwoods
Created June 22, 2019 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhwoods/8bfde4131e458c6d87bf759341df5576 to your computer and use it in GitHub Desktop.
Save alexhwoods/8bfde4131e458c6d87bf759341df5576 to your computer and use it in GitHub Desktop.
Show entire object
const util = require('util')
module.exports = (obj) => util.inspect(obj, { showHidden: false, depth: null })
@alexhwoods
Copy link
Author

JSON.stringify also works if it's just for printing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment