0.0.4 • Published 4 months ago

@mauricioroberto/colorize v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Alt text Alt text

:star2: About project

An simple package to colorize strings with ANSI codes.

:dart: Features

  • Paint string with ANSI codes

:zap: 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');

:wrench: 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

:wave: 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

:handshake: Contact

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

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

:gem: Credits

:microscope: References

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago