creationix/step — pull request #28 by Sembiance (2012-03-02 14:29:15+00:00)
Title: Sharing a 'data' object between steps

I LOVE step. I use it in ALL my node.js code.

This pull request adds a single line of code to step.
A 'data' object that can be used to pass data between steps.

Basically I got the idea from Nue: http://dailyjs.com/2012/02/20/new-flow-control-libraries/

Without this, to use data from step 2 in step 5 you have to declare a variable outside of the overall step()

With this it's as simple as assigning to this.data.foo and then accessing it in a later step.

It's made my code cleaner, and think it would be a good candidate for inclusion into step.

Thoughts?