JamesCropcho/variety — pull request #9 by wfreeman (2012-05-25 23:14:55+00:00)
Title: Adding maxDepth option.

This code allows the user to specify a maxDepth option, limiting the number of levels it will recursively traverse. I set the default to 99, in a similar fashion to your limit default. Hope you like it, but let me know if you'd like something tweaked.

I added a quick section to the README as well, but feel free to scrap it.