A drop-in, function compatible alternative to chalk that supports CommonJS
Go to file
Holly Stubbs 03c5dc2fb1
Update README.md
2023-08-01 14:07:02 +01:00
.github/workflows Create node.js.yml 2023-07-28 12:22:43 +01:00
tooling 1.0.0 2023-07-28 12:18:56 +01:00
.gitignore 1.0.0 2023-07-28 12:18:56 +01:00
.npmignore 1.0.0 2023-07-28 12:18:56 +01:00
LICENSE Initial commit 2023-07-28 11:11:27 +01:00
README.md Update README.md 2023-08-01 14:07:02 +01:00
index.ts 1.0.0 2023-07-28 12:18:56 +01:00
package-lock.json Update version 2023-07-28 12:29:35 +01:00
package.json Update version 2023-07-28 12:29:35 +01:00
tsconfig.json 1.0.0 2023-07-28 12:18:56 +01:00

README.md

dyetty   CodeFactor   Node.js CI   npm

A drop-in, function compatible alternative to chalk that supports CommonJS

Motivations

When version 5 of chalk was released support for CommonJS was dropped. I don't yet (if ever) want to migrate to ESM and was frustrated that I had to use chalk@4 so I made this as a result of that frustration.

Things to note

When using TypeScript you may need to change the way you import the module if you import chalk like this:

import chalk from "chalk";

To importing it like this:

import * as chalk from "dyetty";