coreyti/showdown — pull request #56 by alecperkins (2013-04-15 00:34:18+00:00)
Title: Be more explicit about detecting fs.readdirSync support.

Tools like Browserify result in a `require('fs')` that returns something not falsey, so this more explicit checking prevents the `fs.readdirSync` call from being attempted unless the function itself exists.