multi-term
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

multi-term

Show outputs of parallel running child processes without messing up anything.

DEMO Video

Install

pnpm i multi-term

Usage

See examples for demo source.

Every MultiTerm emits event stdout or stderr when the underlying terms receive data, then you can access .out, .err, or .mixed to get the formatted outputs.

You can make it responsive to the terminal width:

const multi_term = new MultiTerm(3, process.stdout.columns - 2); 
process.stdout.on("resize", () => { 
    multi_term.width = process.stdout.columns - 2; 
});

Other Examples

I use it in an anime opening marker.

Readme

Keywords

none

Package Sidebar

Install

npm i multi-term

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

15.3 kB

Total Files

6

Last publish

Collaborators

  • jacoblincool