hughsk / envify

:wrench: Selectively replace Node-style environment variables with plain strings.
901 stars 57 forks source link

Skip require() of json files #2

Closed bjoerge closed 11 years ago

bjoerge commented 11 years ago

Envify will currently fail with an esprima parse error if used in a project where there is a require('./somefile.json'). This should fix it by ignoring json files entirely.

hughsk commented 11 years ago

Ah nice, thanks! Merged :)