quickansi

1.1.1 • Public • Published

quickansi

convert key frame strings into minimal ansi escape code sequences, to effiently update the screen.

Example

wrap a stream, then tell it what the each frame should be.

var quickansi = require('quickansi')
var update = quickansi(process.stdout)

//tell 
update('hello!')

setTimeout(function () {
  //when there is a partial change,
  //only the new characters are added
  //for flicker free animated ascii art!
  update('hello, WORLD!')
}, 500)

Ansi color codes are also supported, just add colors to the string!

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    0
  • 1.0.2
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i quickansi

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • nopersonsmodules