package
A CSS property value parser for use with PostCSS
npm install postcss-values-parserGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 7 packages.
2.2 MB
Includes dependencies.
4 direct · 2 outdated
^3.1.0
3.2.1
^1.1.4
2.1.1
^4.0.0
6.1.0
^1.0.0
1.0.0
A CSS property value parser that uses css-tree for parsing,
and models nodes on top of PostCSS’s Node/Container/Root classes so the API feels familiar to PostCSS users.
This package powers part of Prettier. Please consider becoming a sponsor if you find this package useful or are a Prettier user. https://github.com/sponsors/shellscape
Using npm:
npm install postcss-values-parser --save-devNote: This package is ESM‑only. Use import in Node.js. In CommonJS on Node >= 20.19.0, require() can load ES modules:
// CommonJS (Node >= 20.19.0)
const { parse } = require('postcss-values-parser');registerWalkers(Container)) to walk by node typePlease see the Documentation for general use and further information on using the package.