Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Injects one or more browserify transforms into all dependencies of a package recursively.
Injects browserify transforms into specified dependencies of a package recursively.
viralify . -t browserify-swap -p ansicolors
var viralify = require('viralify');
viralify(root, [ 'foo', 'bar' ], 'browserify-swap', function (err) {
if (err) return console.error(err);
// package.json's of packages 'foo' and 'bar', found in root and below,
// now have 'browserify-swap' added to the end of their 'browserify.transform' field
})
npm install viralify
viralify <path> <options>
Inject browserify transform(s) into the package.json files of specified packages at and below the given path.
OPTIONS:
-t, --transform transform(s) to inject (required)
-p, --packages packages into which to inject the transforms (required)
-f, --front if set, the transform(s) are injected in the front of the transform field so they run first
EXAMPLES:
Inject 'browserify-swap' transform for all foo dependencies of the package in the current directory
viralify . -t browserify-swap -p foo
Inject 'envify' and 'es6ify' transforms in front for all foo and bar dependencies of the package
in the current directory
viralify ./node_modules --transform envify --transform es6ify --front --package foo -p bar
Injects the given transform(s) into the browserify.transform
field of all package.json
s
of the packages below the given root
that where specified.
If the transform(s) were contained in the package.json
already, no changes are made and no writes performed.
This means that all viralify runs succeeding the first one will be much faster.
Name | Type | Argument | Description |
---|---|---|---|
root | String | of the package | |
packages | Array.<String> | one or more packages to which the transforms should be added | |
transform | Array.<String> | one or more transforms to be added to the transform field | |
front | Boolean |
<optional> | if set transforms are added to the front of the transform field so they run first |
cb | function | called when the transform injection is complete |
generated with docme
Same as viralify
but performed synchronously.
MIT
FAQs
Injects one or more browserify transforms into all dependencies of a package recursively.
The npm package viralify receives a total of 0 weekly downloads. As such, viralify popularity was classified as not popular.
We found that viralify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.