Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Holly Stubbs | 03c5dc2fb1 | |
Holly Stubbs | 1b9bc2e948 | |
Holly Stubbs | ca30f1a1cf |
13
README.md
13
README.md
|
@ -1,2 +1,15 @@
|
||||||
# dyetty [![CodeFactor](https://www.codefactor.io/repository/github/tgpholly/dyetty/badge)](https://www.codefactor.io/repository/github/tgpholly/dyetty) [![Node.js CI](https://github.com/tgpholly/dyetty/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/tgpholly/dyetty/actions/workflows/node.js.yml) [![npm](https://img.shields.io/npm/v/dyetty)](https://www.npmjs.com/package/dyetty)
|
# dyetty [![CodeFactor](https://www.codefactor.io/repository/github/tgpholly/dyetty/badge)](https://www.codefactor.io/repository/github/tgpholly/dyetty) [![Node.js CI](https://github.com/tgpholly/dyetty/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/tgpholly/dyetty/actions/workflows/node.js.yml) [![npm](https://img.shields.io/npm/v/dyetty)](https://www.npmjs.com/package/dyetty)
|
||||||
A drop-in, function compatible alternative to chalk that supports CommonJS
|
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:
|
||||||
|
```ts
|
||||||
|
import chalk from "chalk";
|
||||||
|
```
|
||||||
|
To importing it like this:
|
||||||
|
```ts
|
||||||
|
import * as chalk from "dyetty";
|
||||||
|
```
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "dyetty",
|
"name": "dyetty",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dyetty",
|
"name": "dyetty",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"check-outdated": "^2.11.0",
|
"check-outdated": "^2.11.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "dyetty",
|
"name": "dyetty",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
|
|
Loading…
Reference in New Issue