spawn-term
v3.3.5
Published
Formats spawn with for terminal grouping
Maintainers
Readme
spawn-term
Formats spawn with prefix and colors
import spawn from 'spawn-term'
await spawn('npm', ['install'], { stdio: 'inherit' });
await spawn('npm', ['test'], { stdio: 'inherit' });
Testing
Some tests verify behavior specific to non-TTY environments (e.g., CI pipelines). These tests are skipped when stdout is a TTY.
To run all tests including non-TTY tests locally, pipe the output:
npm test 2>&1 | cat