Registry / web-framework / css-value

css-value

JSON →
library0.0.1jsnpmunverified

A work-in-progress CSS value parser by TJ Holowaychuk. Version 0.0.1, no recent updates. It is a minimal parser that extracts CSS property values from strings. This package is a very early experimental release with no stability guarantees, no documentation, and no test coverage. Not recommended for production use; alternatives like postcss-value-parser or csstree are more mature.

web-framework
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The package is CJS but has no typings; import may work in bundlers but no TypeScript support.

import parse from 'css-value'

Check actual exports; probably a default function.

import { parse } from 'css-value'

Parses a CSS value string into an object with property and value fields.

import parse from 'css-value'; const css = 'color: red; font-size: 14px; background-color: #fff;'; const values = css.split(';').map(part => parse(part.trim())); console.log(values); // [{property: 'color', value: 'red'}, ...] (approximate)
Debug
Known footguns
breakingPackage is experimental and may not parse correctly.
deprecatedNo updates since 2012; consider it unmaintained.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
8 hits · last 30 days
gptbot
4
ahrefsbot
3
script
1
Resources