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

@hint/parser-css

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hint/parser-css

webhint parser needed to analyze CSS files

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19K
increased by5.95%
Maintainers
2
Weekly downloads
 
Created
Source

CSS parser (@hint/parser-css)

The CSS parser is built on top of PostCSS so hints can analyze CSS files.

To use it you will have to install it via npm:

npm install @hint/parser-css

Note: You can make npm install it as a devDependency using the --save-dev parameter, or to install it globally, you can use the -g parameter. For other options see npm's documentation.

And then activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        ...
    },
    "parsers": ["css"],
    ...
}

Events emitted

This parser emits the event parse::css of type StyleParse which has the following information:

  • ast: a PostCSS Root object containing the AST. See the PostCSS walk* APIs for help navigating the AST.
  • code: a string containing the raw stylesheet source code.
  • resource: the parsed resource. If the CSS is in a style tag and not a file, the value will be Inline CSS.

Keywords

FAQs

Package last updated on 06 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc