@qualityedgar/color-shell
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

color-shell

A Node.js module that returns colored logs

Installation

npm install color-shell --save
yarn add color-shell

Usage

Javascript

let colorShell = require('color-shell');
// Logger instance
let logger = new colorShell.Logger({prefix:"Any String - "});
//used in debug environment
logger.debugMode = true;

logger.log("It's a standard log");
logger.success("It's a success log");
logger.warn("It's a warning log");
logger.error("It's an error log");
logger.info("It's an info log");
logger.debug("It's a debug log");

TypeScript

import { Logger } from 'color-shell';
let logger = new Logger({prefix:"Any String - "});
//used in debug environment
logger.debugMode = true;

logger.log("It's a standard log");
logger.success("It's a success log");
logger.warn("It's a warning log");
logger.error("It's an error log");
logger.info("It's an info log");
logger.debug("It's a debug log");

Test

npm run test

Dependents (0)

Package Sidebar

Install

npm i @qualityedgar/color-shell

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.91 kB

Total Files

7

Last publish

Collaborators

  • chandanparkar
  • namitachaudhari
  • spatilparkar
  • aks.abhishek
  • apurvasanap
  • anand_parkar
  • aditi_parkar
  • sundeepnarang
  • ayoshing
  • jasmeetnarang