# hey-listen

> Warning and invariant dev-ex messaging.

Latest version **1.0.8** (published 2019-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install hey-listen
pnpm add hey-listen
yarn add hey-listen
bun add hey-listen
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2019-04-11 |
| First published | 2018-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Matt Perry |
| Maintainers | popmotion |
| Keywords | warning, invariant |

## Links

- npm: https://www.npmjs.com/package/hey-listen
- Repository: https://github.com/Popmotion/hey-listen
- Homepage: https://github.com/Popmotion/hey-listen#readme
- Issues: https://github.com/Popmotion/hey-listen/issues
- npm.io page: https://npm.io/package/hey-listen

## Recent versions

- 1.0.8 (latest) — 2019-04-11
- 1.0.7 — 2019-04-10
- 1.0.6 — 2019-04-10
- 1.0.5 — 2018-05-16
- 1.0.4 — 2018-05-13
- 1.0.3 — 2018-05-13
- 1.0.2 — 2018-05-09
- 1.0.1 — 2018-05-09
- 1.0.0 — 2018-05-09

## README

# Hey, Listen!

### Dev-ex warning functions with added childhood flashbacks

[![npm version](https://img.shields.io/npm/v/hey-listen.svg?style=flat-square)](https://www.npmjs.com/package/hey-listen)
[![npm downloads](https://img.shields.io/npm/dm/hey-listen.svg?style=flat-square)](https://www.npmjs.com/package/hey-listen)
[![Twitter Follow](https://img.shields.io/twitter/follow/popmotionjs.svg?style=social&label=Follow)](http://twitter.com/popmotionjs)
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/popmotion)

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

```bash
npm install hey-listen
```

### Yarn

```bash
yarn add hey-listen
```

## Usage

### `warning`

```javascript
import { warning } from 'hey-listen';

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

### `invariant`

```javascript
import { invariant } from 'hey-listen';

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

---
_Source: https://npm.io/package/hey-listen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
