Sample
postcss 8.5.25: list
Verified sample for npm postcss 8.5.25: list. The contract ran on node 22 · linux alpine/x64 · docker and passed: assert postcss.list.space splits CSS values…
sha256:a36310391bfaf94b5795ad09cf0095318c893091494266edd9d948c5538288c5
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 1
- Signing keys that built it
- 1
Declared environment
linux 24 · ubuntu · glibc 2.39 x64 npm
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5… |
2026-08-30 |
Case
HOW- Goal
- verify postcss.list in pkg:npm/postcss@8.5.25
- Packages
- Symbols
-
- postcss.list
- Created
- 2026-08-30T09:52:38Z
Contract
- assert postcss.list.space splits CSS values by whitespace while preserving function arguments and quoted strings
- assert postcss.list.comma splits comma-separated lists while preserving nested commas inside functions and quotes
- assert postcss.list.split splits strings by custom separator characters while respecting parenthesis nesting and quotes
- assert postcss.list handles escaped characters, tabs, newlines, and nested parentheses without incorrect splitting
- assert postcss.list methods return an empty array when given empty or falsy input strings
Files
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
Source
Clean-room public code sample — generation instructions
Write a brand-new, minimal, self-contained code sample in this clean-room directory.
Do not copy, paraphrase, or reference any existing project source. Work only from this spec.
A csx.json manifest scaffold already exists. Do not recreate it from memory. Preserve its case.goal, packages and symbols; fill its empty case.contract with exact assertions and correct its environment, commands and verifierAdapter for the files you generate.
Goal: verify postcss.list in pkg:npm/postcss@8.5.25
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/postcss@8.5.25
Demonstrate these symbols/APIs:
- postcss.list
Rules:
- One focused purpose; the smallest project that proves the goal.
- Include a contract test (test/contract.*) that runs OFFLINE and exits 0 exactly when the goal behavior works.
- Pin every dependency with a lockfile so resolution is reproducible.
- No secrets, credentials, or tokens. No real URLs (only example.com or localhost). No absolute paths.
- No personal names, emails, company names, or project identifiers of any kind.
- No binaries and no generated output (node_modules, dist, target, venv, .git, .env).
- Keep it under 200 files and 256KB packed.
{"case":{"caseId":"case:sha256:c3f87abc65aa2b99c2a85060668367dba1e59669a8367aa2e13493df220fac07","contract":["assert postcss.list.space splits CSS values by whitespace while preserving function arguments and quoted strings","assert postcss.list.comma splits comma-separated lists while preserving nested commas inside functions and quotes","assert postcss.list.split splits strings by custom separator characters while respecting parenthesis nesting and quotes","assert postcss.list handles escaped characters, tabs, newlines, and nested parentheses without incorrect splitting","assert postcss.list methods return an empty array when given empty or falsy input strings"],"goal":"verify postcss.list in pkg:npm/postcss@8.5.25","kind":"HOW","packages":["pkg:npm/postcss@8.5.25"],"schemaVersion":1,"symbols":["postcss.list"]},"contractCommand":["node","test/contract.mjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","libc":"glibc","libcVersion":"2.39","os":"linux","osVersionBucket":"24","packageManager":"npm","schemaVersion":1},"license":"MIT-0","packages":["pkg:npm/postcss@8.5.25"],"schemaVersion":1,"subject":"pkg:npm/postcss@8.5.25","symbols":["postcss.list"],"verifierAdapter":"node-typescript@1"}
{
"name": "sample-postcss",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-postcss",
"version": "1.0.0",
"license": "MIT-0",
"dependencies": {
"postcss": "8.5.25"
}
},
"node_modules/nanoid": {
"version": "3.3.18",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"bin": {
"nanoid": "bin/nanoid.cjs"
},
"engines": {
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
"license": "ISC"
},
"node_modules/postcss": {
"version": "8.5.25",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz",
"integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"dependencies": {
"nanoid": "^3.3.16",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
}
},
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.10.0"
}
}
}
}
{
"name": "sample-postcss",
"version": "1.0.0",
"type": "module",
"license": "MIT-0",
"dependencies": {
"postcss": "8.5.25"
}
}
{
"schemaVersion": 1,
"goal": "verify postcss.list in pkg:npm/postcss@8.5.25",
"kind": "HOW",
"packages": [
"pkg:npm/postcss@8.5.25"
],
"symbols": [
"postcss.list"
]
}
import assert from 'node:assert/strict';
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
const postcss = require('postcss');
// 1. assert postcss.list.space splits CSS values by whitespace while preserving function arguments and quoted strings
{
const value = '1px solid rgb(0, 0, 0) "Helvetica Neue" calc(100% - 20px)';
const parts = postcss.list.space(value);
assert.deepEqual(parts, [
'1px',
'solid',
'rgb(0, 0, 0)',
'"Helvetica Neue"',
'calc(100% - 20px)'
]);
const multiline = '10px\n 20px\t 30px';
assert.deepEqual(postcss.list.space(multiline), ['10px', '20px', '30px']);
}
// 2. assert postcss.list.comma splits comma-separated lists while preserving nested commas inside functions and quotes
{
const value = 'Arial, "Times New Roman, serif", rgb(255, 0, 0), linear-gradient(to right, red, blue)';
const parts = postcss.list.comma(value);
assert.deepEqual(parts, [
'Arial',
'"Times New Roman, serif"',
'rgb(255, 0, 0)',
'linear-gradient(to right, red, blue)'
]);
const trailing = 'a, b, ';
assert.deepEqual(postcss.list.comma(trailing), ['a', 'b', '']);
}
// 3. assert postcss.list.split splits strings by custom separator characters while respecting parenthesis nesting and quotes
{
const value = '10px / 20px / calc(100% / 2)';
const parts = postcss.list.split(value, ['/'], false);
assert.deepEqual(parts, ['10px', '20px', 'calc(100% / 2)']);
const multiSep = 'item1, item2 / item3, item4';
const splitMulti = postcss.list.split(multiSep, [',', '/'], false);
assert.deepEqual(splitMulti, ['item1', 'item2', 'item3', 'item4']);
const withLast = postcss.list.split('foo:bar:', [':'], true);
assert.deepEqual(withLast, ['foo', 'bar', '']);
}
// 4. assert postcss.list handles escaped characters, tabs, newlines, and nested parentheses without incorrect splitting
{
const escaped = 'escaped\\ space unescaped "quoted \\" space"';
const parts = postcss.list.space(escaped);
assert.deepEqual(parts, ['escaped\\ space', 'unescaped', '"quoted \\" space"']);
const nestedFunc = 'var(--a, calc(10px + var(--b, 20px))) 1fr';
assert.deepEqual(postcss.list.space(nestedFunc), [
'var(--a, calc(10px + var(--b, 20px)))',
'1fr'
]);
}
// 5. assert postcss.list methods return an empty array when given empty or falsy input strings
{
assert.deepEqual(postcss.list.space(''), []);
assert.deepEqual(postcss.list.comma(''), []);
assert.deepEqual(postcss.list.split(''), []);
assert.deepEqual(postcss.list.space(null), []);
assert.deepEqual(postcss.list.comma(undefined), []);
}
Origin Seeder
anonymous