Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mollahdev/cssom-lite

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mollahdev/cssom-lite - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "@mollahdev/cssom-lite",
"version": "1.0.4",
"version": "1.0.5",
"author": "Ashraf Mollah <mollah.dev@gmail.com> (https://mollah.dev)",

@@ -5,0 +5,0 @@ "description": "Generate css with javascript",

@@ -38,2 +38,4 @@ ## Installation

## Add rule
CSSOM-lite ignores these properties/values, undefined, null, false, true, NaN, ''
```jsx

@@ -44,2 +46,14 @@ sheet.addRule('.selector-a', 'background: orange');

## Add rule and remove old value
By using "remove" property like the example, you can remove already added value,
note: remove property will be ignored in the final css ouput
```jsx
sheet.addRule('.selector-a', 'background: orange');
sheet.addRule('.selector-a', `
color: white; text-decoration:none;
remove: background, border, fill;
`);
```
## Add responsive rule

@@ -46,0 +60,0 @@ ```jsx

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc