# t-bag

> Like a toast, but dangling from above..

Latest version **1.2.1** (published 2015-04-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install t-bag
pnpm add t-bag
yarn add t-bag
bun add t-bag
```

## 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.2.1 |
| Published | 2015-04-27 |
| First published | 2014-06-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/t-bag
- Repository: https://github.com/KoryNunn/t-bag
- Issues: https://github.com/KoryNunn/t-bag/issues
- npm.io page: https://npm.io/package/t-bag

## Dependencies (3)

- [crel](https://npm.io/package/crel.md) ^2.1.2
- [doc-js](https://npm.io/package/doc-js.md) ^1.0.0
- [consuela](https://npm.io/package/consuela.md) ^4.2.0

## Recent versions

- 1.2.1 (latest) — 2015-04-27
- 1.2.0 — 2015-04-15
- 1.1.1 — 2014-09-24
- 1.1.0 — 2014-07-23
- 1.0.1 — 2014-07-23
- 1.0.0 — 2014-06-10

## README

# T-Bag

Like a toast, but dangling from above..

## Usage:

require it:

    var tBag = require('t-bag');

Make a t box:

    var box = new tBag.Box('things');

Show a bag:

    box.bag('Some message' [, settings]);

You can optionally pass DOM as the first argument, and it will be inserted as a child of the box element.

Which will go away after 4 seconds by default.

## Settings:

### sticky

Whether to auto-remove the message after hideTime

### hideTime

How long to wait to auto-hide the message

### animationTime

How long to wait to remove the element from the DOM, after hiding. Useful if you want to animate the element's removal.

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