1.1.0 • Published 4 years ago
coloringjs v1.1.0
coloringjs
About
a powerful NodeJS package that allows you to convert the text into a supported color.
How To Use
npm i coloringjs@latest
- require the package for that:
const convertColor = require("coloringjs");
// or...
import * as convertColor from "coloringjs";
- use the method to convert the text:
convertColor("hello", "green", (err, data) => {
if (err) throw err; // if there's an error it will throw it
console.log(data) // the text will be transformed into the green color
})
Supported Colors
- green, yellow, blue, pink, lightBlue
Note:
if sometimes it doesn't work, please restart your code to work