1.0.0 • Published 3 years ago
log4virgin v1.0.0
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
1.0.0
3 years ago