Skip to content

DylanPiercey/ansi-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


ansi-log
API stability Standard NPM version Downloads

Isomorphic logging with ANSI styles.

Installation

npm install ansi-log

Example

import chalk from 'chalk'
import log from 'ansi-log'

log(chalk.red('Hello') + chalk.blue('World')) // Console log with appropriate colors.
log('MyMessage', 'error') // Uses console.error
log('MyMessage', 'warn') // Uses console.warn

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

About

console.log with ANSI in the browser or server.

Resources

Stars

Watchers

Forks

Packages

No packages published