{"repo":"sindresorhus/yoctocolors","free":true,"listed":false,"github":"https://github.com/sindresorhus/yoctocolors","clone":"git clone https://github.com/sindresorhus/yoctocolors.git","description":"The smallest and fastest command-line coloring package on the internet","language":"JavaScript","stars":875,"topics":["ansi","ansi-escape-codes","cli","color","command-line","console","javascript","nodejs","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"yoctocolors 🌈 The smallest and fastest command-line coloring package on the internet Check out Chalk if you want something more mature and comprehensive. Highlights - Tiny - Fast - Handles nested colors - Tree-shakeable - No dependencies - Actively maintained Install ESM: Or CommonJS: Usage You can also import colors as named imports: This package supports basic color detection. Colors can be forcefully enabled by setting the FORCE COLOR environment variable to 1 and can be forcefully disabled by setting NO COLOR or NODE DISABLE COLORS to any value. More info. Styles Modifiers - reset - Reset the current style. - bold - Make the text bold. - dim - Make the text have lower opacity. - italic - Make the text italic. (Not widely supported) - underline - Put a horizontal line below the text. (Not widely supported) - underlineDouble - Put a double horizontal line below the text. (Not widely supported) - underlineCurly - Put a curly horizontal line below the text. (Not widely supported) - underlineDotted - Put a dotted horizontal line below the text. (Not widely supported) - underlineDashed - Put a dashed horizontal line below the text. (Not widely supported) - overline - Put a horizontal line above the text. (Not widely supported) - inverse - Invert background and foreground colors. - hidden - Print the text but make it invisible. - strikethrough - Put a horizontal line through the center of the text. (Not widely supported) Colors - black - red - green - yellow - blue - magenta - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/yoctocolors/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}