js-logs

1.1.2 • Public • Published

js-logs

Brighten up your terminal with some colors.

Installation

npm install js-logs

Usage

var logger = require('js-logs');
 
console.log(logger.red(...));
  • Possible Methods (font colors):
logger.red(...);
 
logger.blue(...);
 
logger.green(...);
 
logger.yellow(...);
 
logger.cyan(...);
 
logger.white(...);
 
logger.magenta(...);
 
logger.gray(...);
  • Possible Methods (background colors):
logger.bgRed(...);
 
logger.bgBlue(...);
 
logger.bgGreen(...);
 
logger.bgYellow(...);
 
logger.bgCyan(...);
 
logger.bgWhite(...);
 
logger.bgMagenta(...);
  • Possible Methods (extras):
logger.ul(...); // Underlines text
 
logger.bold(...);
 
logger.blink(...); // Makes input blink
 
logger.clear(); // Clear the terminal
  • Possible Methods (logger):
logger.success(...);
 
logger.warn(...);
 
logger.error(...);
 
logger.info(...);

Readme

Keywords

Package Sidebar

Install

npm i js-logs

Weekly Downloads

4

Version

1.1.2

License

ISC

Unpacked Size

7.19 kB

Total Files

27

Last publish

Collaborators

  • nuno2202