1.0.0 • Published 2 years ago

@notthedom/logged v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@notthedom/logged

What is it?

A variety of styled equivalents of console.log

Installation

The module is scoped to my npm account, hence the @notthedom in the install command

npm install --save-dev @notthedom/logged
  • exposes five variations of logging functions as named exports.

The variants

  • success

  • info

  • warn

  • error

  • log

    • this is the native console.log accessible by a shorter name

Import & Usage

esm named import syntax

import { success, info, warn, error, log } from '@notthedom/logged';

success('Congrats you are a success!');
info('Some serious and useful information for you');
warn('You might want to watch out for this issue...');
error('Looks like something went wrong, good luck figuring it out');

Example usage screenshot

Alt Screenshot

Links

Licensing

This project is licensed under MIT license.