Skip to content

Instantly share code, notes, and snippets.

@alexhwoods
Created June 22, 2019 16:53
Show Gist options
  • Select an option

  • Save alexhwoods/8bfde4131e458c6d87bf759341df5576 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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