Pass file information (name/mode) along to transform functions. #20

Merged
merged 2 commits into from Feb 13, 2013

Projects

None yet

2 participants

Contributor

Why: This is useful for times when you want dynamically transform files based on the type of file associated with the stream.

For example:

  • You're copying a file hierarchy, to instrument javascript files for code code coverage analysis, without excluding other files that contain metadata (json, etc.)
  • You're copying a file hierarchy, to compress image files for production usage.

Testing: I've added a vows test to make sure the file information is passed on properly.

justindujardin added some commits Feb 9, 2013
@justindujardin justindujardin Pass file information along to transform functions.
 - This is useful for times when you want dynamically transform files based on some logic.  For example, you're copying a file hierarchy, and want to instrument javascript files for code coverage, and compress images.
d227a8b
@justindujardin justindujardin Add vows test to verify that file information is passed to transform …
…functions properly.
a84ab85
Contributor

@AvianFlu, really cool library. Thanks much. 👍

@AvianFlu AvianFlu merged commit a84ab85 into AvianFlu:master Feb 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment