Skip to content

Commit

Permalink
♻️ Migrate colour to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
rkotze committed Oct 27, 2024
1 parent c34c4d6 commit 70e2720
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/git-mob/src/colours.js

This file was deleted.

15 changes: 15 additions & 0 deletions packages/git-mob/src/colours.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const colours = {
red: '\u001B[31m',
yellow: '\u001B[33m',
};
const reset = '\u001B[0m';

function red(text: string) {
return colours.red + text + reset;
}

function yellow(text: string) {
return colours.yellow + text + reset;
}

export { red, yellow };

0 comments on commit 70e2720

Please sign in to comment.