postcss-safe-parser

WebJar for postcss-safe-parser

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

postcss-safe-parser
Last Version

Last Version

4.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

postcss-safe-parser
WebJar for postcss-safe-parser
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/postcss/postcss-safe-parser

Download postcss-safe-parser

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/postcss-safe-parser/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>postcss-safe-parser</artifactId>
    <version>4.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-safe-parser/
implementation 'org.webjars.npm:postcss-safe-parser:4.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-safe-parser/
implementation ("org.webjars.npm:postcss-safe-parser:4.0.2")
'org.webjars.npm:postcss-safe-parser:jar:4.0.2'
<dependency org="org.webjars.npm" name="postcss-safe-parser" rev="4.0.2">
  <artifact name="postcss-safe-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='postcss-safe-parser', version='4.0.2')
)
libraryDependencies += "org.webjars.npm" % "postcss-safe-parser" % "4.0.2"
[org.webjars.npm/postcss-safe-parser "4.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : postcss jar [7.0.26,8)

Project Modules

There are no modules declared in this project.

PostCSS Safe Parser

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

const safe = require('postcss-safe-parser')

const badCss = 'a {'

postcss(plugins).process(badCss, { parser: safe }).then(result => {
  result.css //= 'a {}'
})
org.webjars.npm

PostCSS

PostCSS and plugins based on it

Versions

Version
4.0.2
4.0.1