https://github.com/jsdf/strictify
browserify v2 plugin for enforcing strict mode
https://github.com/jsdf/strictify
Last synced: 5 months ago
JSON representation
browserify v2 plugin for enforcing strict mode
- Host: GitHub
- URL: https://github.com/jsdf/strictify
- Owner: jsdf
- License: mit
- Created: 2014-07-16T03:10:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T18:13:16.000Z (over 10 years ago)
- Last Synced: 2025-08-24T21:53:40.292Z (5 months ago)
- Language: JavaScript
- Size: 210 KB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
```js
function doStuff() {
}
```
install strictify:
```bash
$ npm install strictify
```
when you compile your app, pass `-t strictify` to browserify:
```bash
$ browserify -t strictify neat-module.js > bundle.js
```
bundle.js output:
```js
// browserify bundle wrapper omitted
"use strict";
function doStuff() {
}
```
# opts
`exclude`: array of file extensions to exclude. defaults to `['json']`
# install
With [npm](https://npmjs.org) do:
```bash
npm install strictify
```
# license
MIT