postcss-safe-parser
Fault-tolerant CSS parser for PostCSS
Last updated 9 years ago by ai .
MIT · Repository · Bugs · Original npm
$ 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

  • 6.0.0                                ...           latest (4 years ago)

6 Versions

  • 6.0.0                                ...           4 years ago
  • 5.0.2                                ...           5 years ago
  • 4.0.1                                ...           7 years ago
  • 3.0.1                                ...           8 years ago
  • 1.0.7                                ...           9 years ago
  • 4.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org