scroller_string
v0.1.2
Published
This lets you scroll strings around
Downloads
4
Readme
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