npm.io
1.1.1 • Published 6 years ago

inspect-custom-symbol

Licence
MIT
Version
1.1.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
4

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