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 = const text = 'Lorem ipsum dolor sit amet...' 'Idioms are a wonderful part of the English...'
The result will be shown on the console
scroll
Print multiple automatic horizontal scroll text to terminal
Parameters
textArr
string Each item is a line that will scroll repeatedlyspeed
number The speed in ms for the animation (optional, default100
)
Examples
Returns void