str

strictify

browserify v2 plugin for enforcing strict mode

Showing:

Popularity

Downloads/wk

379

GitHub Stars

12

Maintenance

Last Commit

7yrs ago

Contributors

4

Package

Dependencies

1

Size (min+gzip)

0.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100