1.1.1 • Published 4 years ago

inspect-custom-symbol v1.1.1

Weekly downloads
2,930
License
MIT
Repository
github
Last release
4 years ago

inspect-custom-symbol

Use util.inspect.custom without having to browserify util in the browser

npm install inspect-custom-symbol

Usage

var custom = require('inspect-custom-symbol')

var foo = {
  [custom]: () => 'totally foo'
}

console.log(foo) // prints totally foo

License

MIT