Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ncpa0/dynout


https://github.com/ncpa0/dynout

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# dynout

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

## Example

```ts
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