Name: postcss-safe-parser
Owner: PostCSS
Description: Fault tolerant CSS parser for PostCSS
Created: 2015-08-01 23:53:39.0
Updated: 2018-02-20 20:47:34.0
Pushed: 2017-07-14 18:39:43.0
Size: 131
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
<img align=“right” width=“95” height=“95”
title="Philosopher?s stone, logo of PostCSS"
src="http://postcss.github.io/postcss/logo.svg">
A fault-tolerant CSS parser for PostCSS, which will find & fix syntax errors, capable of parsing any input. It is useful for:
safe = require('postcss-safe-parser');
badCss = 'a {';
css(plugins).process(badCss, { parser: safe }).then(function (result) {
result.css //= 'a {}'