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

postcss-inherit-parser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-inherit-parser

A parser for postcss-inherit's syntax

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
865
increased by35.58%
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS Inherit Parser

Build Status Code Climate Test Coverage Issue Count Dependency Status Inline docs npm version


A PostCSS Parser that supports syntax for inherit declarations with pseudo classes.

.b:before {
  content: "";
}
.a {
  inherit: .b:before;
}

Defining inherit syntax

Using an options object with a property of propertyRegExp, you can define a custom inherit syntax.

This example:



parse(
  '.a { color: red; } .b { extend: .a; }',
  { propertyRegExp: /^extends?$/ }
);

would work with this css:

.a {
  color: red;
}
.b {
  extend: .a;
}

Keywords

FAQs

Package last updated on 16 May 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