scroll-lines
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

Table of Contents

Introduction

Show information on console without using a lot of real estate screen by letting it scroll horizontally like those electronic stock ticker tape

How to use it

Install the package

$ npm i --save scroll-lines

Pass an array of strings and the speed in miliseconds to the scroll function

const { scroll } = require('scroll-lines')
 
const text = [
  'Lorem ipsum dolor sit amet...',
  'Idioms are a wonderful part of the English...'
]
 
scroll(text, 100)

The result will be shown on the console

scroll-lines

scroll

Print multiple automatic horizontal scroll text to terminal

Parameters

  • textArr string Each item is a line that will scroll repeatedly
  • speed number The speed in ms for the animation (optional, default 100)

Examples

scroll(['a large text'], ['another large text'])

Returns void

Readme

Keywords

none

Package Sidebar

Install

npm i scroll-lines

Weekly Downloads

7

Version

0.1.7

License

BSD

Unpacked Size

739 kB

Total Files

13

Last publish

Collaborators

  • edpr99