Comparing version 1.2.0 to 1.2.1
25
index.js
@@ -77,6 +77,6 @@ 'use strict'; | ||
line: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -100,6 +100,6 @@ }; | ||
dline: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -123,6 +123,6 @@ }; | ||
sline: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -146,6 +146,6 @@ }; | ||
wline: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -169,6 +169,6 @@ }; | ||
eline: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -192,6 +192,6 @@ }; | ||
hline: function(char, length) { | ||
if(!char) { | ||
if (!char) { | ||
char = '-'; | ||
}; | ||
if(!length) { | ||
if (!length) { | ||
length = 30; | ||
@@ -211,2 +211,3 @@ }; | ||
console.log(chalk.bgCyan.black(theLine)); | ||
} | ||
@@ -213,0 +214,0 @@ } |
{ | ||
"name": "lme", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Simply and beautifully log to console.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -105,7 +105,7 @@ ![](https://raw.githubusercontent.com/vajahath/lme/master/media/logo.png) | ||
| `line` | default | default output | `lme.line();` | | ||
| `dline` | same as line | default output | `lme.dline("hi");` | | ||
| `sline` | successe | on success output | `lme.sline("hi");` | | ||
| `eline` | error | on error-ed output | `lme.eline("hi");` | | ||
| `wline` | warning | for warnings like output | `lme.wline("hi");` | | ||
| `hline` | highlight | for highlighting an output | `lme.hline("hi");` | | ||
| `dline` | same as line | default output | `lme.dline("*", 5);` | | ||
| `sline` | successe | on success output | `lme.sline("*");` | | ||
| `eline` | error | on error-ed output | `lme.eline("/", 50);` | | ||
| `wline` | warning | for warnings like output | `lme.wline("*");` | | ||
| `hline` | highlight | for highlighting an output | `lme.hline("*");` | | ||
@@ -112,0 +112,0 @@ <br> |
18
test.js
@@ -24,9 +24,9 @@ ////////////////// | ||
// strings | ||
lme.d('cherry is sweet!'); | ||
lme.s('cherry is sweet!'); | ||
lme.w('cherry is sweet!'); | ||
lme.e('cherry is sweet!'); | ||
lme.h('cherry is sweet!'); | ||
lme.i('cherry is sweet!'); | ||
lme.t('cherry is sweet!'); | ||
lme.d('mango is sweet!'); | ||
lme.s('mango is sweet!'); | ||
lme.w('mango is sweet!'); | ||
lme.e('mango is sweet!'); | ||
lme.h('mango is sweet!'); | ||
lme.i('mango is sweet!'); | ||
lme.t('mango is sweet!'); | ||
lme.d('\n'); | ||
@@ -60,2 +60,4 @@ | ||
lme.eline({ yu: 1 }); | ||
lme.hline({ yu: 1 }); | ||
lme.hline({ yu: 1 }); | ||
lme.i('test finished'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
124485
251
0