Implement 'process.stdout' in the sandbox. #16

Closed
wants to merge 1 commit into from

2 participants

@TooTallNate

Hey Tim. I just thought you might want to merge this patch that adds process.stdout to the script sandbox in Wheat. The example scripts I am trying to run on my article are attempting to access process.stdout, which didn't exist!

I think this is a nice clean implementation that creates a "virtual" write stream that simply appends to snippet.output whenever it gets written to.

Note that this patch requires node v0.3, for use of the new Stream class, so you may want to wait until that is landed before merging.

@TooTallNate TooTallNate Implement 'process.stdout' in the sandbox.
This allows for directly calling `write()` or `pipe()` on 'process.stdout' if your example script needs to do that.
7b67950
@creationix
Owner

Got it!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment