@mauricioroberto/colorize
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Colorize

An simple package to colorize strings with ANSI codes.

PRs welcome! contributors last update forks stars open issues license

Alt text Alt text


🌟 About project

An simple package to colorize strings with ANSI codes.

🎯 Features

  • Paint string with ANSI codes

⚡ How to use

Install the package

  npm install @mauricioroberto/colorize

Paint

import { bgRed, bright, colorize, hidden } from '@mauricioroberto/colorize';

colorize({ after: ' ' })
    .magenta('Hi!, i am')
    .unBg()
    .bold()
    .blink()
    .black(' Mauricio Roberto')
    .unBoldBright()
    .unBlink()
    .green(`Ju${bright('nior')} Dev${bgRed('lop')}er`)
    .white('from')
    .yellow('Brazil')
    .cyan()
    .dim(`and my favorite ${hidden('color')} is`)
    .bgGreen()
    .bold()
    .red(' Blue');

🔧 Development

Clone this project

  git clone https://github.com/mauriciorobertodev/colorize.git

Go to project folder

  cd colorize

Install dependencies

  npm install

Run dev mode

  npm run dev

👋 Contribuindo

Contributions are always welcome!

  1. Fork the project (https://github.com/mauriciorobertodev/colorize/fork)
  2. Create a branch for your modification (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Adding a new feature...')
  4. Push (git push origin my-new-feature)
  5. Create a new Pull Request

🤝 Contact

Mauricio Roberto - mauricio.roberto.dev@gmail.com

Link to the project on npmjs: https://www.npmjs.com/package/@mauricioroberto/colorize


💎 Credits


🔬 References

Package Sidebar

Install

npm i @mauricioroberto/colorize

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

21.5 kB

Total Files

9

Last publish

Collaborators

  • mauricioroberto