SkillAgentSearch skills...

Strictify

browserify v2 plugin for enforcing strict mode

Install / Use

/learn @jsdf/Strictify
About this skill

Quality Score

0/100

Supported Platforms

Universal

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

Related Skills

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated3y ago
Forks5

Languages

JavaScript

Security Score

75/100

Audited on May 11, 2022

No findings