# tape-alert

> Simple inline alert

Latest version **1.0.3** (published 2019-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install tape-alert
pnpm add tape-alert
yarn add tape-alert
bun add tape-alert
```

## 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.0.3 |
| Published | 2019-05-08 |
| First published | 2019-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabriel Nobrega |
| Maintainers | ganobrega |

## Links

- npm: https://www.npmjs.com/package/tape-alert
- Repository: https://github.com/ganobrega/tape-alert
- Homepage: https://github.com/ganobrega/tape-alert#readme
- Issues: https://github.com/ganobrega/tape-alert/issues
- npm.io page: https://npm.io/package/tape-alert

## Recent versions

- 1.0.3 (latest) — 2019-05-08
- 1.0.2 — 2019-05-08
- 1.0.1 — 2019-05-07
- 1.0.0 — 2019-05-07

## README

[![Tape Logo](https://img.icons8.com/color/200/000000/micropore-tape.png)](https://github.com/ganobrega/tape-alert)

# tape-alert

Simple inline alerts

![Tape](https://user-images.githubusercontent.com/4602864/57258888-256cac00-7034-11e9-8fb4-c21b1f06a681.png)

## Requirements

**jQuery** >= v2.1.0

## Installation

CSS:

``` html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tape-alert/dist/tape-alert.css">

```

JS:

```html
<script src="https://cdn.jsdelivr.net/npm/tape-alert/dist/tape-alert.jquery.js"></script>
```

## Usage

The `tape-alert` append the alerts in a given container.

``` html
<div id="errors"></div>
<div id="warnings"></div>
```

``` javascript
$('#errors').tape({
    title: 'Error',
    text: ['Required fields are empty'],
    status: 'error',
});

$('#warnings').tape({
    title: 'This is a Warning!',
    text: ['You have 2 minutes to complete the form'],
    status: 'warning',
});
```

## Options

``` javascript
{
    title: '',
    text: '', // Use string or array
    status: '' // error, success, info, warning. Default: error
}
```

## Todo

- Delay to hide the tape.
- Custom classes.

## Credits

- [Tape icon by Icons8](https://icons8.com/icon/14845/tape)

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