-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add flag to force color output #31
Comments
This is a better solution: process.env.FORCE_COLOR = 1
const MarkedTerminal = require('marked-terminal') Attention: Must be set before requiring |
Being able to set it as a |
Hm. I think maybe the best way here is to have a option to marked terminal with the chalk instance. I think this is a good first contribute for someone, as it would be fairly small scoped and doesn't require any big job of formatting text and regexery etc. |
You might also want to support the emerging NO_COLOR standard. |
Thanks @millette. Think that could be it's own issue so it can be followed up better. |
I run the code on AWS Lambda and save it to a file.
Chalk.js, however, thinks it doesn't support colors and prints no escape codes.
I had to monkey patch the code
to make it work
The text was updated successfully, but these errors were encountered: