Registry / serialization / css-stringify

css-stringify

JSON →
library2.0.0jsnpmunverified

A JavaScript CSS stringifier for Node.js, part of the Rework CSS ecosystem. It takes an AST produced by css-parse and converts it back to a CSS string. Version 2.0.0 is the latest stable release, compatible with Node.js. Typically used internally via the `css` package. Not actively developed, but stable for legacy projects.

serialization
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Named export, not default. Also exposed via require: const { stringify } = require('css-stringify');

import { stringify } from 'css-stringify';

Parses a CSS string to AST using css-parse, then stringifies it back to CSS using css-stringify.

import { stringify } from 'css-stringify'; import { parse } from 'css-parse'; const css = 'body { color: red; }'; const ast = parse(css); const output = stringify(ast); console.log(output); // prints: body { color: red; }
Debug
Known footguns
gotchaPackage is deprecated in favor of the combined 'css' package. Direct usage is uncommon.
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
11 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
amazonbot
2
Resources