Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "cli-style", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A simple tool allows you to set styles to command line output more easier.", | ||
"main": "dist/index.js", | ||
"files" : [ "dist" ], | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "build": "tsc --declaration", |
@@ -18,10 +18,49 @@ # cli-style | ||
const str = style( 'this is a green bold string with an underline in white background', { | ||
color : 'green', | ||
const styles = [ { | ||
color : 'red', | ||
bg : 'white', | ||
bold : true, | ||
italic : true, | ||
strikethrough : true, | ||
underline : true | ||
}, { | ||
color : 'red', | ||
bg : 'white', | ||
bold : true, | ||
italic : true, | ||
strikethrough : true, | ||
underline : true, | ||
bg : '#FFFFFF' | ||
} ); | ||
dim : true | ||
}, { | ||
color : '#FF0000', | ||
bg : '#FFFFFF', | ||
bold : true, | ||
italic : true, | ||
strikethrough : true, | ||
underline : true, | ||
dim : true | ||
}, { | ||
color : 'rgb( 123, 24, 64 )', | ||
bg : 'hsl( 32, 100, 50 )', | ||
bold : true, | ||
italic : true, | ||
strikethrough : true, | ||
underline : true, | ||
dim : true | ||
}, { | ||
color : 'hsv(32, 100, 100)', | ||
bg : 'hwb(32, 0, 50)', | ||
bold : true, | ||
italic : true, | ||
strikethrough : true, | ||
underline : true, | ||
dim : true | ||
} ]; | ||
console.log( str ); | ||
for( const item of styles ) { | ||
console.log( style( JSON.stringify( item ), item ) ); | ||
} | ||
``` | ||
<img src="https://raw.githubusercontent.com/LvChengbin/cli-style/master/screenshot.png" width="500" /> | ||
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
66
1
1
6321
5
76