
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Super lite CSS-in-JS solution.
Import renderer.
import {Renderer} from 'ezcss';
const renderer = new Renderer;
const {rule, sheet, withStyles, useStyles, styled, css} = renderer;
Render a single "rule".
const className = rule({
border: '1px solid red'
}, 'MyName');
<div className={className} />
Create a "styles sheet" with multiple lazy-evaluating rules.
const styles = sheet({
main: {
border: '1px solid red'
},
element: {
border: '1px solid blue'
}
}, 'MyName');
<div className={styles.main} />
Injects styles prop into component.
const styles = {
main: {
border: '1px solid red'
}
};
const MyComp = withStyles(styles, function MyComp ({styles}) {
return <div className={styles.main} />
});
Use styles object in your component.
const styles = {
main: {
border: '1px solid red'
}
};
const MyComp = useStyles(styles, function MyComp (props, styles) {
return <div className={styles.main} />
});
Create "styled" components.
const Div = styled('div', {
border: '1px solid red'
}, 'RedBorderDiv');
<Div>Hello world!</Div>
Stateful component style decorator.
@css({
border: '1px solid red'
})
class MyComponent extends Component {
render () {
}
}
excss works in Node.js environment as well. Use .raw property to access raw CSS styles
on server and include then in your template.
const html += `<style>${renderer.raw}</style>`;
Unlicense — public domain.
FAQs
Super lite CSS-in-JS
The npm package ezcss receives a total of 1 weekly downloads. As such, ezcss popularity was classified as not popular.
We found that ezcss 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.