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

wants to merge 1 commit into from

2 participants


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.

Got it!

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