hey-listen
Warning and invariant dev-ex messaging.
Last updated 8 months 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 (8 months ago)

9 Versions

  • 1.0.8                                ...           8 months ago
  • 1.0.7                                ...           8 months ago
  • 1.0.6                                ...           8 months ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |