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

@colors/colors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colors/colors

get colors in your node.js console

  • 1.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24M
increased by5.75%
Maintainers
1
Weekly downloads
 
Created

What is @colors/colors?

@colors/colors is an npm package that allows you to add color and style to your console output in Node.js applications. It provides a simple and intuitive API to apply various colors and text styles to strings, making it easier to create visually appealing command-line interfaces.

What are @colors/colors's main functionalities?

Basic Colors

This feature allows you to apply basic colors to your text. In this example, the text 'Hello' will be printed in green.

const colors = require('@colors/colors');
console.log('Hello'.green);

Text Styles

This feature allows you to apply text styles such as bold and underline. In this example, the text 'Hello' will be printed in bold and underlined.

const colors = require('@colors/colors');
console.log('Hello'.bold.underline);

Custom Themes

This feature allows you to define custom themes with specific color and style combinations. In this example, a custom theme is created that applies red color and underline style to the text 'Hello'.

const colors = require('@colors/colors');
colors.setTheme({ custom: ['red', 'underline'] });
console.log('Hello'.custom);

Other packages similar to @colors/colors

Keywords

FAQs

Package last updated on 10 Jul 2023

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