0.1.2 • Published 3 years ago

scroller_string v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

npm i scroller_string

Example code

const Scroller = require('scroller_string')

// The first argument is the string that will be scrolled
// The second argument is the amount of letters on one print process
var scrll = new Scroller('this is a test', 4)

setInterval(() => {
    scrll.scroll(/* a number (default 1) to scroll*/) // returns the scrolled string
    console.log(scrll.scrolled) // or get the string here
}, 800);

The output should look like this

image

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago