An open API service indexing awesome lists of open source software.

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

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