Socket
Socket
Sign inDemoInstall

css-rules

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-rules

Returns a parse tree for a CSS source.


Version published
Weekly downloads
236K
increased by2.21%
Maintainers
1
Install size
56.7 kB
Created
Weekly downloads
 

Readme

Source

css-rules Build Status Coverage Status

NPM

Returns a parse tree for a CSS source.

Install

Install with npm

npm install --save css-rules

Usage

var parseCSS = require('css-rules');

var rules = parseCSS(css);

rules.forEach(function (rule) {
    console.log(rule[0]);
    console.log(rule[1]);
});

Credit

The code for this module was originally taken from the Juice library.

License

MIT

Keywords

FAQs

Last updated on 17 Jan 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc