strictify

0.2.0 • Public • Published

strictify

browserify v2 plugin for enforcing strict mode

adds "use strict"; to the top of every module in bundle output

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:

// browserify bundle wrapper omitted
"use strict";
function doStuff() {
 
}

opts:

'exclude': array of file extensions to exclude. defaults to ['json']

install

With npm do:

npm install strictify

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    486
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    486
  • 0.1.1
    55
  • 0.1.0
    8

Package Sidebar

Install

npm i strictify

Weekly Downloads

462

Version

0.2.0

License

MIT

Last publish

Collaborators

  • jsdf