Skip to content

princecodes247/log4virgin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Log4virgin


Log4virgin is a minimalist nodejs library for logging items in terminal


installation

initalise a package.json file on current working directory

npm init -y

install logvirgins using the below code

npm install --D logvirgins

Require the package into your nodejs project

const {log,table,info,error,count,cls,debug} = require("logvirgins")

That it you are ready to use logvirgins to log out beautiful text on console

Code Samples

syntax

  // loging 
  log([value], color[r, g,blu,y,cy,blc, [red, green, blue, yellow, cyan, black]][..optional])
  //displaying tables
  table([..obj])
  //logging out info
  info([..string])
  //logging errors
  error(values)
  //counter
  // begining of loop
  count()
  // end of loop
  count()
  // debug console
  debug([..obj])
  // clear screen
  cls()

logging default text

    log("hello from logvirgins")
    
    //output hello from logvirgins

logging out text with colors

    log("hello from logvirgins", valid color name)
    //output
- hello from logvirgins
+ hello from logvirgins
! hello from logvirgins

logging out objects in table format

  table(["apples", "oranges", "bananas"])
   // output 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%