1.0.5 • Published 9 years ago
ansi-log v1.0.5
Isomorphic logging with ANSI styles.
Installation
npm install ansi-logExample
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.warnContributions
- Use
npm testto run tests.
Please feel free to create a PR!