Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 438 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 438 Bytes

dynout

Dynamic output for terminal applications. - Easily update previously printed line.

Example

import { Output } from "dynout";

Output.line("This is a static line that will never change");

const dl = Output.dline("This line can be changed later");

// ... do something
Output.line("print other things");

dl.update(current => {
  return "Second line changed!";
));

dl.close(); // prevent any more changes to this line