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

attempt to remove execPipe function #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CrypticSwarm
Copy link
Contributor

The exec Pipe function looks to do about the same as what child_process.exec does.
I thought that it should be removed and use child_process.exec instead.

Currently this is not ready to merge. At the moment the graphs images don't render correctly. They are about 5% smaller. Any ideas why this isn't working?

@austinyun
Copy link

Is it possible that the exec version is actually the correct behavior and execPipe is for some reason rendering them unnecessarily large?

@CrypticSwarm
Copy link
Contributor Author

No, highly doubt it. This code doesn't work. I was mainly posting up for any suggestions why it wasn't working the way I thought it should. (The images don't render in the browser.)

Had a problem with encoding.
Exec contrary to the docs is handing back a string not a buffer.
@CrypticSwarm
Copy link
Contributor Author

This is now working correctly. It was a problem with the encoding of the streams. Should be ready to pull.

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

Successfully merging this pull request may close these issues.

2 participants