You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/site/pages/en/blog/migrations/chalk-to-styletext.mdx
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,15 @@ This codemod aims to help you reduce external dependencies by transforming chalk
28
28
- Template literal syntax (chalk...``)
29
29
- Advanced modifiers with limited terminal support (overline, blink, etc.)
30
30
31
+
### Prerequisites:
32
+
33
+
#### Node.js Version Requirements
34
+
35
+
- Node.js v20.12.0 or later (for util.styleText)
36
+
-`util.styleText` became stable in Node.js v22.13.0 (and v23.5.0)
37
+
38
+
### Usage:
39
+
31
40
The source code for this codemod can be found in the [chalk-to-util-styletext directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/chalk-to-util-styletext).
32
41
33
42
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/chalk-to-util-styletext).
0 commit comments