browserify v2 plugin for enforcing strict mode
adds "use strict"; to the top of every module in bundle output
given some files :
neat-module.js:
function doStuff() {
}install strictify:
$ npm install strictifywhen you compile your app, pass -t strictify to browserify:
$ browserify -t strictify neat-module.js > bundle.jsbundle.js output:
// browserify bundle wrapper omitted
"use strict";
function doStuff() {
}exclude: array of file extensions to exclude. defaults to ['json']
With npm do:
npm install strictifyMIT