New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

strictify

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strictify

browserify v2 plugin for enforcing strict mode

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
326
0.31%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

strict mode

FAQs

Package last updated on 05 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts