
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
browserify-varify
Advanced tools
browserify transform that converts all const assignments to var assignments.

browserify transform that converts all const assignments to var assignments.
npm install varify
So you can get the benefits of immutable variables with help of lint tools while staying compatible with older browsers
that have no const.
The real const is block scoped, however when replaced with var this feature is lost. So only use varify if you can
do without block scope and are only looking for some immutability support that gets compiled out for compatibility.
If you are after block scope, have a look at def.js which provides limited support for that.
Given this JavaScript:
const a = 1;
var keep = { const: 1 };
keep.const = 2;
const foo = function () {
console.log('some const s should be left unchanged');
};
Running browserify with varify transform:
require('browserify')()
.transform(require('varify'))
.add(__dirname + '/sample.js')
.bundle()
.pipe(process.stdout);
Outputs:
var a = 1;
var keep = { const: 1 };
keep.const = 2;
var foo = function () {
console.log('some const s should be left unchanged');
};
browserify -t varify sample.js > bundle.js
thlorenz / https://github.com/thlorenz/varify
FAQs
browserify transform that converts all const assignments to var assignments.
The npm package browserify-varify receives a total of 4 weekly downloads. As such, browserify-varify popularity was classified as not popular.
We found that browserify-varify 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.