hey-listen
Tiny versions of popular dev-ex functions like warning and invariant
Last updated 8 years ago by popmotion .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hey-listen 
SYNC missed versions from official npm registry.

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"

Current Tags

  • 1.0.8                                ...           latest (7 years ago)

9 Versions

  • 1.0.8                                ...           7 years ago
  • 1.0.7                                ...           7 years ago
  • 1.0.6                                ...           7 years ago
  • 1.0.5                                ...           8 years ago
  • 1.0.4                                ...           8 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |