entropitor / dotenv-cli

A cli to load dotenv files
MIT License
516 stars 50 forks source link

Dotenv-cli removes output colors #91

Open nohehf opened 1 year ago

nohehf commented 1 year ago

When using dotenv -- <some_command>, if some command has colored output, dotenv will remove it.

I guess that the issue exists because of cross-spawn that is used to spawn the sub-process. I'm wondering if in 2023 node:child_process still has issues with windows (which is, I believe, the reason you used cross-spawn in the first place.

entropitor commented 8 months ago

Feel free to file a PR that fixes it. I don't have access to a windows machine so I cannot test it though.