# ink-marquee

> marquee component for [Ink](https://github.com/vadimdemedes/ink)

Latest version **1.1.1** (published 2017-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install ink-marquee
pnpm add ink-marquee
yarn add ink-marquee
bun add ink-marquee
```

## 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.1 |
| Published | 2017-07-24 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | y-takey |
| Maintainers | y-takey |
| Keywords | ink, cli |

## Links

- npm: https://www.npmjs.com/package/ink-marquee
- Repository: https://github.com/y-takey/ink-marquee
- Homepage: https://github.com/y-takey/ink-marquee#readme
- Issues: https://github.com/y-takey/ink-marquee/issues
- npm.io page: https://npm.io/package/ink-marquee

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2017-07-24
- 1.1.0 — 2017-07-23
- 1.0.0 — 2017-07-17

## README

# ink-marquee

marquee component for [Ink](https://github.com/vadimdemedes/ink)


## Install
---

```bash
$ npm install ink-marquee
# or
$ yarn add ink-marquee
```

## Usage
---

```js
const { h, render } = require('ink');
const Marquee = require('ink-marquee');

render(<Marquee color="blue" text="long long text" />);
```

## Props

name | type | default | desc
---- | ---- | ---- | ----
text | string | "" | required
color | string | "green" | "red", "green", "blue"... e.t.c. -> see also [chalk](https://github.com/chalk/chalk)
direction | string | "rtl" | flow direction. "rtl": right to left, "ltr": left to right.
speed | number | 500 | flow type. the unit is *millisecond*
width | number | window(terminal) width | flowable area width.
repeat | boolean | true | repeat if flowed

## Example

code:

```js
<Marquee text="12" width={3} direction="ltr" speed={1000} repeat={true} />
```

result:
```
1__
↓ after 1sec
21_
↓ after 1sec
_21
↓ after 1sec
__2
↓ after 1sec
___
↓ after 1sec
1__
```


LICENSE
---

MIT © 2017 y-takey

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