Socket
Socket
Sign inDemoInstall

ink-marquee

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ink-marquee

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


Version published
Weekly downloads
0
Maintainers
1
Install size
51.9 kB
Created
Weekly downloads
 

Readme

Source

ink-marquee

marquee component for Ink

Install


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

Usage


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

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

Props

nametypedefaultdesc
textstring""required
colorstring"green""red", "green", "blue"... e.t.c. -> see also chalk
directionstring"rtl"flow direction. "rtl": right to left, "ltr": left to right.
speednumber500flow type. the unit is millisecond
widthnumberwindow(terminal) widthflowable area width.
repeatbooleantruerepeat if flowed

Example

code:

<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

Keywords

FAQs

Last updated on 24 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc