ascii-color-log

0.1.3 • Public • Published

coverage

ASCII color log

This package is an opiniated log function to create colored log message in CLI. The primary goal for this package is to create colored logs in a gitlab pipeline. By creating colered logs it is easier to read if something has gone wrong, or offcourse if everything is allright.

Available colors

It is a JS class to be used in your script.

available colors

Howto use in your project

These are two examples how you can use this lib for your project. This are the available coloring options: success, successBlock, info, infoBlock, error, errorBlock.

CommonJS

const ASCIIColorLog = require('ascii-color-log');
const log = new ASCIIColorLog();

log.success('This is a success log')

Module

import ASCIIColorLog from 'ascii-color-log.js';
const log = new ASCIIColorLog();

log.success('This is a success log')

Readme

Keywords

Package Sidebar

Install

npm i ascii-color-log

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

46.8 kB

Total Files

7

Last publish

Collaborators

  • yunic