Skip to content

coajs/coa-echo

Repository files navigation

coa-echo

GitHub license npm version npm downloads PRs Welcome

Lightweight console color logger for node.js

Installing

Using npm

$ npm install coa-echo

Using yarn

$ yarn add coa-echo

Example

import { echo } from 'coa-echo'

echo.log('log black')
echo.warn('warn yellow')
echo.info('info magenta')
echo.error('error red')
echo.grey('grey')
echo.blue('blue')
echo.green('green')
echo.cyan('cyan')

Note: Typescript is highly recommended

API

echo.log(message[,params])
echo.warn(message[,params])
echo.info(message[,params])
echo.error(message[,params])
echo.grey(message[,params])
echo.blue(message[,params])
echo.green(message[,params])
echo.cyan(message[,params])

License

MIT