.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / postcss-safe-parser / README.md
1 # PostCSS Safe Parser [![Build Status][ci-img]][ci]
2
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">
6
7 A fault-tolerant CSS parser for [PostCSS], which will find & fix syntax errors,
8 capable of parsing any input. It is useful for:
9
10 * Parse legacy code with many hacks. For example, it can parse all examples
11   from [Browserhacks].
12 * Works with demo tools with live input like [Autoprefixer demo].
13
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
19
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">
22 </a>
23
24 ## Usage
25
26 ```js
27 var safe   = require('postcss-safe-parser');
28 var badCss = 'a {';
29
30 postcss(plugins).process(badCss, { parser: safe }).then(function (result) {
31     result.css //= 'a {}'
32 });
33 ```