log-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

log-type

A simple logger for different types of log messages.

Usage

import { log, server, game, error, warn, debug } from 'log-type';

log('[Prefix]', 'red', 'Log Message');
server('Log message.');
game('Log message.');
error('Log message.');
warn('Log message.');
debug('Log message.');

Outputs:

output;

When using the log() function, the color parameter takes a color string from the choices from Chalk Colors.

Package Sidebar

Install

npm i log-type

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • hparcells