1.0.11 • Published 3 years ago

dead-simple-console-colors v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Dead Simple Console Colors

Straight forward info, success, warning, and error console color.

Installation and usage

Install Dead Simple Console Colors from npm

npm install dead-simple-console-colors

yarn add dead-simple-console-colors

Then use it in your app:

// import Dead Simple Console Colors
const Console = require('dead-simple-console-colors')

import Console from "dead-simple-console-colors"
/** 
 * Console.info() 
 * Log text in cyan color
 **/
Console.info("Starting app...") 

/** 
 * Console.success()
 * Log text in green
 **/
Console.success("Successfully saved entry to db") 

/** 
 * Console.warn()
 * Log text in yellow
 **/
Console.warn("This method will be deprecated in the next release") 

/** 
 * Console.error()
 * Log text in red
 **/
Console.error("Failed to save to db") 

Example

Alt text

That's it!

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago