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

yoctocolors

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

yoctocolors

The smallest and fastest command-line coloring package on the internet

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5M
increased by8.46%
Maintainers
1
Weekly downloads
 
Created

What is yoctocolors?

The yoctocolors npm package is a lightweight library for styling terminal output with colors. It allows developers to easily add color to their console logs, making it easier to distinguish different types of messages.

What are yoctocolors's main functionalities?

Basic Coloring

This feature allows you to colorize text in the terminal. You can use different colors like red, green, and blue to make your console output more readable.

const yoctocolors = require('yoctocolors');
console.log(yoctocolors.red('This is a red text'));
console.log(yoctocolors.green('This is a green text'));
console.log(yoctocolors.blue('This is a blue text'));

Background Coloring

This feature allows you to change the background color of the text in the terminal. It supports various background colors like red, green, and blue.

const yoctocolors = require('yoctocolors');
console.log(yoctocolors.bgRed('This text has a red background'));
console.log(yoctocolors.bgGreen('This text has a green background'));
console.log(yoctocolors.bgBlue('This text has a blue background'));

Text Styling

This feature allows you to style the text with different attributes like bold, italic, and underline to emphasize certain parts of your console output.

const yoctocolors = require('yoctocolors');
console.log(yoctocolors.bold('This is bold text'));
console.log(yoctocolors.italic('This is italic text'));
console.log(yoctocolors.underline('This is underlined text'));

Other packages similar to yoctocolors

Keywords

FAQs

Package last updated on 03 Jul 2024

Did you know?

Socket

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.

Install

Related posts

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