@zedvision/hey-listen
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Hey, Listen!

Dev-ex warning functions with added childhood flashbacks

npm version npm downloads Twitter Follow Join the community on Spectrum

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

import { warning } from 'hey-listen';

warning(false, 'Warning message'); // console.warn "Warning message"

invariant

import { invariant } from 'hey-listen';

invariant(false, 'Error message'); // throws "Error message"

Readme

Keywords

Package Sidebar

Install

npm i @zedvision/hey-listen

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

9.24 kB

Total Files

17

Last publish

Collaborators

  • zolika84