Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
bem-tools-autoprefixer
Advanced tools
bem-tools extention to use autoprefixer during building process.
Install with npm
:
› npm install bem-tools-autoprefixer
Configure your project's .bem/make.js
to use bem-tools-autoprefixer
:
// .bem/make.js
require('bem-tools-autoprefixer').extendMake(MAKE);
MAKE.decl('BundleNode', {
getTechs : function() {
return ['bemdecl.js', 'deps.js', 'css', 'prefix.css'];
},
'create-prefix.css-node' : function(tech, bundle, magic) {
return this.createDefaultTechNode.call(this, 'css', bundle, magic);
},
'create-prefix.css-optimizer-node' : function(tech, sourceNode, bundle) {
var borschikCss = this['create-css-optimizer-node'];
return borschikCss.apply(this, arguments).map(function(source) {
var node = this.createAutoprefixerNode(tech, source, bundle);
return borschikCss.call(this, tech, node, bundle);
}, this);
}
});
You can set browser you want to support in your project.
// make.js
MAKE.decl('AutoprefixerNode', {
getBrowsers : function() {
return [
'last 2 versions',
'firefox >= 20',
'android 4'
];
}
});
See autoprefixer browsers documentation for more.
--
Autoprefixer parse CSS and add vendor prefixes to CSS rules using values from the Can I Use.
FAQs
Use autoprefixer with bem-tools
We found that bem-tools-autoprefixer 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
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.