hyperz-nodelogger

3.7.3 • Public • Published

Hyperz-NodeLogger

A node logger using multiple external npm modules to allow you to build your own stylish console logger.


Support


Installation

npm i hyperz-nodelogger@latest


Using The Logger

The nodelogger function offers a fair amount of customization.

Entry Type Definition
#1 STRING The header, this is the top of the embed
#2 STRING The width of the header
#3 STRING The color of the ASCII text for the header (must work with npm chalk)
#4 STRING The body section of the logger, doesn't support color yet
#5 STRING The background color of the logger, can be a color HEX, or disable it by setting to "disabled"
#6 STRING The border around the logger box, can be a color hex
#7 STRING The border style around the logger module
#8 BOOLEAN Make the header border match the body border

Border Styles

  • single
  • classic
  • double
  • round
  • none

Code Example

const nodelogger = require('hyperz-nodelogger')

client.on("ready", () => {
    const logger = new nodelogger()
    // Entries: header, headerWidth, headerColor, body, backgroundColor, borderColor, borderStyle, fullBorders
    logger.hypelogger(`HDClient`, '500', 'green', `What a cool feature for a node module!\n\nPretty dank ngl`, 'disabled', 'green', 'single', false)
});


What are the dependencies?

Figlet

Carden

Chalk

Axios


Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.7.3
    12
    • latest

Version History

Package Sidebar

Install

npm i hyperz-nodelogger

Weekly Downloads

12

Version

3.7.3

License

MIT

Unpacked Size

13.8 kB

Total Files

4

Last publish

Collaborators

  • hyperz