Update README.md

This commit is contained in:
Holly Stubbs 2023-08-01 14:07:02 +01:00 committed by GitHub
parent 1b9bc2e948
commit 03c5dc2fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
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.
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: