Hey, Listen!
Dev-ex warning functions with added childhood flashbacks
Hey, Listen! provides simple versions of the popular warning
and invariant
dev-experience functions.
The library checks against process.env.NODE_ENV
to minify away messages in production.
Install
npm
npm install hey-listen
Yarn
yarn add hey-listen
Usage
warning
; ; // console.warn "Warning message"
invariant
; ; // throws "Error message"