Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncpa0/dynout
https://github.com/ncpa0/dynout
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ncpa0/dynout
- Owner: ncpa0
- License: mit
- Created: 2024-09-17T16:39:34.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-17T16:46:10.000Z (4 months ago)
- Last Synced: 2024-09-17T20:58:17.307Z (4 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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