Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A simple tool allows you to set styles to command line output more easier.
A simple tool allows you to set styles to command line output more easier.
$ npm i cli-style --save
This gadget is based on chalk, and color
, bgcolor|bg
, underline
, bold
, italic
, strikethrough
, dim
can be used as options in cli-style
, but only HEX
and Keyword
color modes can be used.
const style = require( 'cli-style' );
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,
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
} ];
for( const item of styles ) {
console.log( style( JSON.stringify( item ), item ) );
}
FAQs
A simple tool allows you to set styles to command line output more easier.
The npm package cli-style receives a total of 62 weekly downloads. As such, cli-style popularity was classified as not popular.
We found that cli-style demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.