postcss-safe-parser
Fault-tolerant CSS parser for PostCSS
Last updated 9 months ago by ai .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install postcss-safe-parser 
SYNC missed versions from official npm registry.

PostCSS Safe Parser Build Status

A fault-tolerant CSS parser for PostCSS, which will find & fix syntax errors, capable of parsing any input. It is useful for:

  • Parse legacy code with many hacks. For example, it can parse all examples from Browserhacks.
  • Works with demo tools with live input like Autoprefixer demo.
Sponsored by Evil Martians

Usage

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

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

Current Tags

  • 4.0.1                                ...           latest (9 months ago)

14 Versions

  • 4.0.1                                ...           9 months ago
  • 4.0.0                                ...           9 months ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 2,640
This Week 14,690
This Month 65,108
Last Day 2,955
Last Week 17,458
Last Month 71,154
Dependencies (1)
Dependents (1009)

Copyright 2014 - 2016 © taobao.org |