Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-style

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-style - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

3

package.json
{
"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" />
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc