simple-output
Advanced tools
Comparing version 2.0.0 to 2.1.0
13
index.js
@@ -1,2 +0,3 @@ | ||
var symbols = require('log-symbols'); | ||
const symbols = require('log-symbols'); | ||
const chalk = require('chalk'); | ||
@@ -27,3 +28,12 @@ | ||
function node(msg) { | ||
const icon = '⬢'; | ||
const matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g; | ||
const node = chalk.green( | ||
icon.replace(matchOperatorsRegex, '\\$&') | ||
); | ||
module.exports.stdout.write(node + ' ' + msg + '\n'); | ||
} | ||
// --- | ||
@@ -39,4 +49,5 @@ | ||
message, | ||
node, | ||
warn | ||
}; | ||
{ | ||
"name": "simple-output", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "index.js", | ||
@@ -37,5 +37,6 @@ "files": [ | ||
"devDependencies": { | ||
"jshint": "^2.10.2" | ||
"jshint": "^2.10.3" | ||
}, | ||
"dependencies": { | ||
"chalk": "^3.0.0", | ||
"log-symbols": "^3.0.0" | ||
@@ -42,0 +43,0 @@ }, |
@@ -26,2 +26,3 @@ # simple-output | ||
- message(msg) | ||
- node(msg) | ||
- warn(msg) | ||
@@ -28,0 +29,0 @@ |
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
4575
37
68
2
+ Addedchalk@^3.0.0
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)