A drop-in, function compatible alternative to chalk that supports CommonJS
Find a file
2023-08-01 14:05:33 +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
index.ts 1.0.0 2023-07-28 12:18:56 +01:00
LICENSE Initial commit 2023-07-28 11:11:27 +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
README.md Update README.md 2023-08-01 14:05:33 +01:00
tsconfig.json 1.0.0 2023-07-28 12:18:56 +01:00

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 so I made this.

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";