colortag`colors.js alternative, built with tags.`;
Get colors inside your console.log, with special feature to use tag from javascript.
npm install colortag
Without tag :
import { red } from "colortags";
console.log(
red(
`You can modify the query string to include fields that you want to be included or not. Refer to the GraphQL Schema below for a full overview.`
)
);
With tag :
import { red } from "colortags";
try {
// function that throws error
} catch (e) {
red`Something wrong with your relationship`;
}
Using tag will give side effect which is will automically execute with console.log.
This open source is licensed under ISC.