adrian-seijo / strictify

browserify v2 plugin for enforcing strict mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strictify

browserify v2 plugin for enforcing strict mode

adds "use strict"; to the top of every module file

example

given some files :

neat-module.js:

function doStuff() {
  
}

install strictify:

$ npm install strictify

when you compile your app, pass -t strictify to browserify:

$ browserify -t strictify neat-module.js > bundle.js

bundle.js output:

"use strict";
function doStuff() {
  
}

install

With npm do:

npm install strictify

license

MIT

About

browserify v2 plugin for enforcing strict mode

License:MIT License


Languages

Language:JavaScript 100.0%