https://github.com/yahoo/istanbul/blob/master/lib/command/instrument.js#L95

Yeah, their API for doing instrumentation programatically is not the best.