browserify v2 plugin that allows you to instrument your source using istanbul
npm install istanbulify
To instrument your source during the browserify bundling simply use the -t
options of browserify passing istanbulify as argument:
browserify -t istanbulify myfile.js > bundle.js
To ignore a file during bundling add a block comments containing /* istanbulify ignore file */
in your file.
The code of this module has been greatly inspired by coffeify.