Socket
Socket
Sign inDemoInstall

weeb-logger

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weeb-logger

A humorous and functional JavaScript logging library inspired by the anime subculture.


Version published
Maintainers
1
Install size
3.05 kB
Created

Readme

Source

weeb-logger

A humorous and functional logging library for JavaScript inspired by the anime subculture. Originating from a meme by @trashh_dev on Twitter, this library maps fun, anime-inspired logging methods to the standard console.log(), console.warn(), console.error(), and console.debug() methods.

Features

  • Maps console.log(), console.warn(), console.error(), and console.debug() to fun, anime-inspired methods like console.moan(), console.yelp(), console.rage(), console.babble(), and more.
  • Adds console.scream() method that takes a message, a color, and optional prefixes and postfixes, and outputs the message to the console with the specified formatting.

Usage

console.moan('This is a regular log message');
console.whisper('This is a subtle log message');
console.yelp('This is a warning');
console.rage('This is an error');
console.babble('This is a debug message');
console.panic('This is a panic message');
console.scream('This is an important message', 'red', 'Attention!', '!!!');

Each method accepts a string message and formats it according to its style. The console.scream() method accepts a color and prefix/postfix strings in addition to the message.

Installation

Install weeb-logger using npm:

npm install weeb-logger

Then, import it in your JavaScript file:

import 'weeb-logger';

Note: This package modifies the global console object, so you don't need to assign it to a variable.

License

MIT

Keywords

FAQs

Last updated on 01 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc