We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a output stream looking like this, however it doesn't work reliably because some lines simply do not have a prefix.
const outputStream = { write: (data) => { if (['[SDK]', '[bundle]', '[dts]'].some((str) => data.includes(str))) { sdkStream.write(data); } else if (data.includes('[Demo App]')) { demoStream.write(data); } }, };
May I know if there's any way I can tell reliably which process a line is coming form? Many thanks!
The text was updated successfully, but these errors were encountered:
Not really. What you have is the best way right now.
However, we can change the output stream to have the command object alongside the text. This would be a breaking change though.
PRs welcome, should be an easy change!
Sorry, something went wrong.
No branches or pull requests
I have a output stream looking like this, however it doesn't work reliably because some lines simply do not have a prefix.
May I know if there's any way I can tell reliably which process a line is coming form? Many thanks!
The text was updated successfully, but these errors were encountered: