Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4fac653
feat(chalk-to-util-styletext): add workflow with basic test
richiemccoll Oct 30, 2025
21781d6
feat(chalk-to-util-styletext): sync lockfile
richiemccoll Oct 30, 2025
6944457
feat(chalk-to-util-styletext): add commonjs require case
richiemccoll Oct 30, 2025
e628155
Merge branch 'main' into feat/chalk-styletext-migration
richiemccoll Oct 31, 2025
eaf5469
feat(chalk-to-util-styletext): add bg color case
richiemccoll Oct 31, 2025
8b29e26
feat(chalk-to-util-styletext): add chained case
richiemccoll Oct 31, 2025
0c2b44a
feat(chalk-to-util-styletext): add advanced modifiers case
richiemccoll Oct 31, 2025
54b3bb9
feat(chalk-to-util-styletext): add more modifiers to test case
richiemccoll Oct 31, 2025
90d0648
feat(chalk-to-util-styletext): add modifiers test case
richiemccoll Oct 31, 2025
1bf1736
feat(chalk-to-util-styletext): add mixed imports test case
richiemccoll Oct 31, 2025
6a14179
feat(chalk-to-util-styletext): add dynamic imports test case
richiemccoll Oct 31, 2025
cefb46c
Merge branch 'main' into feat/chalk-styletext-migration
richiemccoll Oct 31, 2025
324fb50
feat(chalk-to-util-styletext): refactoring
richiemccoll Oct 31, 2025
fa51707
feat(chalk-to-util-styletext): code review comments
richiemccoll Nov 1, 2025
27a0ad2
Merge branch 'main' into feat/chalk-styletext-migration
richiemccoll Nov 3, 2025
0482005
feat(chalk-to-util-styletext): code review comments
richiemccoll Nov 3, 2025
8c762aa
Merge branch 'feat/chalk-styletext-migration' of github.com:richiemcc…
richiemccoll Nov 3, 2025
f2a5a8b
feat(chalk-to-util-styletext): handle different import cases
richiemccoll Nov 4, 2025
09e8eaf
feat(chalk-to-util-styletext): add unsupported features test
richiemccoll Nov 4, 2025
412f1ee
Merge branch 'main' into feat/chalk-styletext-migration
richiemccoll Nov 5, 2025
34c97cd
feat(chalk-to-util-styletext): warn on unsupported method
richiemccoll Nov 6, 2025
6d5433d
Merge branch 'feat/chalk-styletext-migration' of github.com:richiemcc…
richiemccoll Nov 6, 2025
661902f
feat(chalk-to-util-styletext): handle method assignments
richiemccoll Nov 8, 2025
3f41a08
feat(chalk-to-util-styletext): handle complex chaining
richiemccoll Nov 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions recipes/chalk-to-util-styletext/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# chalk-to-util-styletext

TODO
21 changes: 21 additions & 0 deletions recipes/chalk-to-util-styletext/codemod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
schema_version: "1.0"
name: "@nodejs/chalk-to-util-styletext"
version: 1.0.0
description: Migrate from the chalk package to Node.js's built-in util.styleText API
author: Richie McColl
license: MIT
workflow: workflow.yaml
category: migration

targets:
languages:
- javascript
- typescript

keywords:
- transformation
- migration

registry:
access: public
visibility: public
24 changes: 24 additions & 0 deletions recipes/chalk-to-util-styletext/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "@nodejs/chalk-to-util-styletext",
"version": "1.0.0",
"description": "Migrate from the chalk package to Node.js's built-in util.styleText API",
"type": "module",
"scripts": {
"test": "npx codemod jssg test -l typescript ./src/workflow.ts ./"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nodejs/userland-migrations.git",
"directory": "recipes/chalk-to-util-styletext",
"bugs": "https://github.com/nodejs/userland-migrations/issues"
},
"author": "Richie McColl",
"license": "MIT",
"homepage": "https://github.com/nodejs/userland-migrations/blob/main/recipes/chalk-to-util-styletext/README.md",
"devDependencies": {
"@codemod.com/jssg-types": "^1.0.9"
},
"dependencies": {
"@nodejs/codemod-utils": "*"
}
}
Loading
Loading