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.

npm install css-value
INSTALL
IMPORT
SIG · CSS-VALUE
C
css-value
web-frameworkjavascriptv0.0.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ import parse from 'css-value'
✗ const parse = require('css-value')
The package is CJS but has no typings; import may work in bundlers but no TypeScript support.
parse
✓ import { parse } from 'css-value'
Check actual exports; probably a default function.

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 issues
breakingPackage is experimental and may not parse correctly.
fix
Use a stable parser like postcss-value-parser.
affects: 0.0.1
deprecatedNo updates since 2012; consider it unmaintained.
fix
Migrate to an actively maintained package.
affects: 0.0.1
Errors
Common errors & fixes
Cannot find module 'css-value'
Package not installed or not in node_modules.
fix
npm install css-value
TypeError: parse is not a function
Incorrect import (default vs named).
fix
Use import parse from 'css-value' or const parse = require('css-value').
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
css-value — npm install css-value · libregistry