Skip to content

node.js util.inspect in a single module, ready for the browser

Notifications You must be signed in to change notification settings

deecewan/browser-util-inspect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-util-inspect

This module contains minor modifications to the original by Automattic. It disregards legacy platform support and has zero dependencies, making it much lower weight.

This is an extraction of Node's inspect utility from the util module, with two fundamental advantages:

  • Single, focused module
  • Ready for use in-browser

How to use

With some kind of module bundler (webpack, etc):

import inspect from 'browser-util-inspect';
console.log(inspect({}));

License

MIT – Copyright (c) 2010-2014 Joyent, Inc.

About

node.js util.inspect in a single module, ready for the browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%