Print out text one char by one char
$ npm install --save typeout2
const typeout = require('typeout');
typeout('Hello')
.then(() => {
// Some stuff to do after the animation.
});typeout(text, [opt])
duration: duration for the whole animation, in milliseconds, default is 700.delay: delay for every character, in milliseconds. Whendelayis specified,durationoption will be ignored.interruptable: whether user can skip the animation, default is false.stream: the destination stream, default is process.stdout.
typeout use Promise to reflect the animation state, which may lead to a chaos procedure. With async and await keywords, you can make the procedure more intuitive and continuous.
MIT © Cyandev