🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

postcss-inherit-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
p

postcss-inherit-parser

A parser for postcss-inherit's syntax

0.2.0
latest
79

Supply Chain Security

100

Vulnerability

80

Quality

76

Maintenance

100

License

Version published
Weekly downloads
1.3K
-40.6%
Maintainers
1
Weekly downloads
 
Created
Issues
98

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;
}

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