postcss/postcss-safe-parser

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

Homepage:

Size: 131

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PostCSS Safe Parser Build Status

<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:

Sponsored by Evil Martians

Usage
safe   = require('postcss-safe-parser');
badCss = 'a {';

css(plugins).process(badCss, { parser: safe }).then(function (result) {
result.css //= 'a {}'


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.