timed-terminal-print
v0.0.3
Published
output text in the terminal in a staggered manner
Downloads
8
Readme
timed-terminal-print
A small node js module able to output text to the process output with a delay.
Install with:
npm install timed-terminal-print --save
Example:
let writer = new TimedConsoleWritter('',10,10)
writer.write('Some text')
writer.write('text to write after the first one is done')
writer.write(`I even work great with
multiline text`)
Get user input in a timed manner using the question method.
writer.write(`The bird says?\n`);
writer.question().then((result) => {
writer.write(result);
});