2.0.3 • Published 7 years ago
justdo v2.0.3
Justdo - library
Logging library build on top of 'chalk' and 'boxen'
Example #1
// npm i justdo
const J = require("justdo")
setInterval(()=>{
J.log("more is less")
J.lg("how many more times")
J.lg(["-------------------"])
},500)
Example #2
setInterval(()=>{
J.log("more is","less")
J.lg("how many more","times")
J.lg(["-------------------"])
},500)
Functions
log(logData, flag) ⇒ null
log - Write in console log with background color and text color taken from a random member of the predefined settings.
Kind: global function
Param | Type | Description | |
---|---|---|---|
logData | string | if it not a string passed in, then it will use common console.log() | |
flag | string | optional | It uses 'boxen' library to write the flag into a box using random settings |
lg(logData, flag) ⇒ null
lg - write to the console in bold style with a random text color
Kind: global function
Param | Type | Description | |
---|---|---|---|
logData | string | data to be written in the console. if the type is different from 'string', then it will use common console.log() | |
flag | string | optional | It uses 'boxen' library to write the flag into a box using random settingsion |
box(logData) ⇒ null
box - write a text into a box with randomized settings
Kind: global function
Param | Type | Description |
---|---|---|
logData | string | data to be written in the box. if the type is different from 'string', then it will use common console.log() |
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.12.0
7 years ago
1.11.2
7 years ago
1.11.0
7 years ago
1.10.1
7 years ago
1.10.0
7 years ago
1.9.4
8 years ago
1.9.2
8 years ago
1.9.1
8 years ago
1.9.0
8 years ago
1.8.0
8 years ago
1.6.7
8 years ago
1.6.5
8 years ago
1.6.4
8 years ago
1.6.3
8 years ago
1.7.0
8 years ago
1.6.1
8 years ago
1.6.0
8 years ago
1.5.4
8 years ago
1.5.3
8 years ago
1.5.2
8 years ago
1.5.1
8 years ago
1.5.0
8 years ago
1.4.0
8 years ago
1.3.0
8 years ago
1.2.0
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago