Skip to content

A node logger using multiple external npm modules to allow you to build your own stylish console logger. This is used in many of my current github repositories simply because it is unique and stylish and shows you have some real professional style under your sleeve.

License

Notifications You must be signed in to change notification settings

Itz-Hyperz/Hyperz-NodeLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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


About

A node logger using multiple external npm modules to allow you to build your own stylish console logger. This is used in many of my current github repositories simply because it is unique and stylish and shows you have some real professional style under your sleeve.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •