1.0.0 • Published 3 years ago

autoname v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

autoname

Auto naming of objects for easier debugging.

npm install autoname

Usage

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.

License

MIT