Auto naming of objects for easier debugging
MIT License
Auto naming of objects for easier debugging.
npm install autoname
const autoname = require('autoname')
autoname(someObject) // ClassName#id
autoname(someObject) // <same as above>
autoname(another) // AnotherClass#id
All state is stored in a WeakMap so nothing is modified, so you could probably use this in an production env.
MIT