2.0.3 • Published 9 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
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.12.0
9 years ago
1.11.2
9 years ago
1.11.0
9 years ago
1.10.1
9 years ago
1.10.0
9 years ago
1.9.4
9 years ago
1.9.2
9 years ago
1.9.1
9 years ago
1.9.0
9 years ago
1.8.0
9 years ago
1.6.7
9 years ago
1.6.5
9 years ago
1.6.4
9 years ago
1.6.3
9 years ago
1.7.0
9 years ago
1.6.1
9 years ago
1.6.0
9 years ago
1.5.4
10 years ago
1.5.3
10 years ago
1.5.2
10 years ago
1.5.1
10 years ago
1.5.0
10 years ago
1.4.0
10 years ago
1.3.0
10 years ago
1.2.0
10 years ago
1.1.0
10 years ago
1.0.0
10 years ago
