Skip to content
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

Can I use this with carriage return? #18

Closed
donaldpipowitch opened this issue May 28, 2015 · 1 comment
Closed

Can I use this with carriage return? #18

donaldpipowitch opened this issue May 28, 2015 · 1 comment

Comments

@donaldpipowitch
Copy link

I spawn a child process (protractor) which logs to stdout with a carriage return, but I don't know how to use it with npmlog, because it logs to a new line instead of replacing the old one.

I would like to do this:

    var child = spawn(getProtractorBinary('protractor' + ws.winExt), [ path ], {
      env: process.env
    });

    child.stdout.on('data', data => {
      log.info('protractor', data.toString());
    });

Instead I need to do this:

    var child = spawn(getProtractorBinary('protractor' + ws.winExt), [ path ], {
      env: process.env,
      stdio: [ 'pipe', process.stdout, 'pipe' ]
    });

Any way to combine logs with carriage return in npmlog?

@wraithgar
Copy link
Member

Closing due to age

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants