# reuse-alerts

> A package for using custom alerts in the command line

Latest version **1.1.0** (published 2021-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install reuse-alerts
pnpm add reuse-alerts
yarn add reuse-alerts
bun add reuse-alerts
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-11-17 |
| First published | 2021-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Scott |
| Maintainers | jwsscott777 |
| Keywords | James, Scott, alerts |

## Links

- npm: https://www.npmjs.com/package/reuse-alerts
- Repository: https://github.com/jwsscott777/reuse-alerts
- Homepage: https://github.com/jwsscott777/reuse-alerts#readme
- Issues: https://github.com/jwsscott777/reuse-alerts/issues
- npm.io page: https://npm.io/package/reuse-alerts

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [log-symbols](https://npm.io/package/log-symbols.md) ^4.1.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-11-17
- 1.0.3 — 2021-11-11
- 1.0.2 — 2021-11-11
- 1.0.1 — 2021-11-11
- 1.0.0 — 2021-11-11

## README

# ` npm i reuse-alerts `

> Use this package for extra colors and symbols for your alert messages

## Usage

>const alert = require('reuse-alerts')

// You can choose between SUCCESS, INFO, WARNING, ERROR

alert()
// Prints: ✖  ERROR  You forgot to do something

alert({ type: 'success', msg: 'Completed!', name: 'Hey' })
// Prints:  ✔  Hey  Completed!

alert({ type: 'info', msg: 'This worked' })
// Prints:  ℹ  INFO  This worked

alert({ type: 'warning', msg: "You didn't add something!" })
// Prints:  ⚠  WARNING  You didn't add something!

alert({ type: 'error', msg: 'Something went wrong' })
// Prints:  ✖  ERROR  Something went wrong

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