0.1.7 • Published 5 years ago

scroll-lines v0.1.7

Weekly downloads
5
License
BSD
Repository
github
Last release
5 years ago

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

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago