
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
css-style.js
Advanced tools
modify the element style fast and safety and auto prefixes.just 2kb
安全简单快速修改元素的style~只有2kb哦
npm install style.js
style(selecors,css)
CDM
var style = require('style')
AMD
define(['style'],function(style){})
ES6
import style from 'style'
var qs = function(q){return document.querySelector(q)}
// elements string style
style('.box','width:200px;height:200px;background:red')
//
style('.box',{float:'left',margin:'15px'})
for(var a = 1; a <= 4 ; a ++){
style('.box'+a,{animation:'pulse 0.6s '+ (a-1) + 's'})
}
//1
style(qs('.box1'),{background:'blue',filter:'blur(5px)'})
//2
style('.box2',{background:'purple'})
style(['.box3','.box4'],{background:'#673ab7',border:'5px solid #4caf50'})
style(['.box3',qs('.box4')],{boxShadow:'5px 5px 8px #FF9800'})
style.js is licensed under The MIT License.
FAQs
modify the element style fast and safety and auto prefixes.
We found that css-style.js 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.