
Research
SAP CAP npm Packages Hit by Supply Chain Attack
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
Creating style sheets dynamically via javascript. This is useful if you have a module with a very small set of styles and do not want to provide a separate CSS to download.
If you are using ezStyles with browserify or some such mechanism, you can get it as an npm module
npm install ezstyles
If you are using it in the browser, you can direclty include ezStyles.js which has no dependencies. Replace the path to the CDN location you are using in the following example:
<script src="/like-falling-leaves.github.io/ezStyles/ezStyles.js"></script>
Usage:
// var ezStyles = require('ezstyle'); // for npm environments only. for browser, this is a global
ezStyles.create({
id: 'some_unique_id', // this is the element ID
styles: [ // styles are provided as pairs: [selector, rule]
[ 'body', 'margin: 0; padding: 0;' ],
[ 'li:nth-child(even)', 'background-color: light-grey;']
]
});
Usage:
ezStyles.remove('some_unique_id'); // the ID must match the ID provided in the create call.
Usage:
ezStyles.append(
'some_unique_id', // this ID should match the ID provided in the create call
[ // these rules are specified in the same format as in the create call
['body', 'margin: 0; padding: 0; border: 0;']
]
);
Usage:
ezStyles.append(
'some_unique_id', // this ID should match the ID provided in the create call
{ // these rules are specified in the same format as in the create call
body: 'margin: 0; padding: 0; border: 0;'
}
);
FAQs
Dynamically create style-sheets
The npm package ezstyles receives a total of 1 weekly downloads. As such, ezstyles popularity was classified as not popular.
We found that ezstyles 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
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.