1 # PostCSS Safe Parser [![Build Status][ci-img]][ci]
3 <img align="right" width="95" height="95"
4 title="Philosopher’s stone, logo of PostCSS"
5 src="http://postcss.github.io/postcss/logo.svg">
7 A fault-tolerant CSS parser for [PostCSS], which will find & fix syntax errors,
8 capable of parsing any input. It is useful for:
10 * Parse legacy code with many hacks. For example, it can parse all examples
12 * Works with demo tools with live input like [Autoprefixer demo].
14 [Autoprefixer demo]: http://simevidas.jsbin.com/gufoko/quiet
15 [Browserhacks]: http://browserhacks.com/
16 [PostCSS]: https://github.com/postcss/postcss
17 [ci-img]: https://img.shields.io/travis/postcss/postcss-safe-parser.svg
18 [ci]: https://travis-ci.org/postcss/postcss-safe-parser
20 <a href="https://evilmartians.com/?utm_source=postcss">
21 <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
27 var safe = require('postcss-safe-parser');
30 postcss(plugins).process(badCss, { parser: safe }).then(function (result) {