2.0.0 • Published 6 months ago
@f0c1s/color-magenta v2.0.0
@f0c1s/color-magenta
A node/npm library that changes text color to magenta.
Related projects
Name | NPM package | GitHub repo |
---|---|---|
color-black | npm | github |
color-blue | npm | github |
color-cyan | npm | github |
color-green | npm | github |
color-magenta | npm | github |
color-red | npm | github |
color-white | npm | github |
color-yellow | npm | github |
random-colored-string | npm | github |
installation and usage
npm install @f0c1s/color-magenta
import magenta from "@f0c1s/color-magenta";
// const {default: magenta} from "@f0c1s/color-magenta";
console.log(magenta("This text is magenta"));
development
npm run build
node
> const {default: magenta} = await import("./dist/index.js")
> magenta("what")
'\x1B[35mwhat\x1B[0m'
> console.log(magenta("what"))
what
License
MIT License
Copyright (c) 2019-2025 Anubhav Saini