log4virgin

1.0.0 • Public • Published

Logvirgins


Logvirgins minimalist nodejs module 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 

Readme

Keywords

none

Package Sidebar

Install

npm i log4virgin

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

12.3 kB

Total Files

5

Last publish

Collaborators

  • benrobo