Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

browser-util-inspect

deecewan48.6kMIT*0.2.0TypeScript support: definitely-typed

light-weight, zero-dep port of util-inspect suitable for the browser

readme

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.

changelog

0.2.0 / 2017-12-28

  • remove old browser support
  • remove all dependencies

Automattic changes

0.1.8 / 2014-02-14

  • index: fix document.all type stuff

0.1.7 / 2014-02-14

  • index: avoid double call to Object.keys

0.1.6 / 2014-02-14

  • index: fix usage of Array#reduce for old browsers

0.1.5 / 2014-02-14

  • index: fix usage of indexOf for older browsers

0.1.4 / 2014-02-14

  • index: make getOwnPropertyNames and getOwnPropertyDescriptor optional for old browsers

0.1.3 / 2014-02-14

  • index: add support for Array#map on older browsers

0.1.2 / 2014-02-14

  • index: added support for Array#forEach on older browsers

0.1.1 / 2014-02-14

  • index: added missing colors and styles

0.1.0 / 2014-02-14

  • index: fix _extend usage

0.0.1 / 2014-02-14

  • initial release