-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to maintain console colors #69
Comments
Try this execa('bash',['./scripts/lint-styles.sh'], {stdio: 'inherit'}) |
I've found that in most cases (not confirmed outside of an OSX env), using the option Some bins/apps also have options, like Mocha |
@SamVerschueren @shellscape Thanks gents, I went with the
|
note that so should be: var execa = require('execa');
execa("eslint", ["./src/**/*.js"], {env: {FORCE_COLOR: 'true'}})
.then(result => {
console.log(result.stdout);
}); |
Not that using stdio:inherit will not let you access stdout/stderr |
I have created a simple script:
This script calls
When executed, the output is correct, but it does not have the color output which displays when executing from cli
The text was updated successfully, but these errors were encountered: