Skip to content

Commit c458f5d

Browse files
committed
feat: US-184 - Add chalk project-matrix fixture
1 parent 3e3950e commit c458f5d

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

docs/nodejs-compatibility.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ The [project-matrix test suite](https://github.com/rivet-dev/secure-exec/tree/ma
8080
| [ws](https://npmjs.com/package/ws) | Networking | WebSocket client/server, HTTP upgrade, events |
8181
| [jsonwebtoken](https://npmjs.com/package/jsonwebtoken) | Crypto | JWT signing (HS256), verification, decode |
8282
| [bcryptjs](https://npmjs.com/package/bcryptjs) | Crypto | Pure JS password hashing and verification |
83+
| [chalk](https://npmjs.com/package/chalk) | Terminal | Terminal string styling, ANSI escape codes |
8384
| [lodash-es](https://npmjs.com/package/lodash-es) | Utility | Large ESM module resolution at scale |
8485
| [zod](https://npmjs.com/package/zod) | Validation | Schema definition, parsing, safe parse, transforms |
8586
| [rivetkit](https://npmjs.com/package/rivetkit) | SDK | Local vendor package resolution |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"entry": "src/index.js",
3+
"expectation": "pass"
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "project-matrix-chalk-pass",
3+
"private": true,
4+
"type": "module",
5+
"dependencies": {
6+
"chalk": "5.4.1"
7+
}
8+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Chalk } from "chalk";
2+
3+
// Force color level 1 (basic ANSI) for deterministic output across environments
4+
const c = new Chalk({ level: 1 });
5+
6+
const red = c.red("red");
7+
const green = c.green("green");
8+
const blue = c.blue("blue");
9+
const bold = c.bold("bold");
10+
const underline = c.underline("underline");
11+
const nested = c.red.bold.underline("nested");
12+
const bg = c.bgYellow.black("highlight");
13+
const combined = c.italic(c.cyan("italic-cyan"));
14+
15+
const result = {
16+
red,
17+
green,
18+
blue,
19+
bold,
20+
underline,
21+
nested,
22+
bg,
23+
combined,
24+
supportsLevel: typeof c.level,
25+
};
26+
27+
console.log(JSON.stringify(result));

0 commit comments

Comments
 (0)