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

simple-terminal-color

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-terminal-color

Simple Terminal Color (NodeJS,console.log)

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
167K
increased by33.3%
Maintainers
0
Weekly downloads
 
Created
Source

simple-terminal-color

Change text colors easily for console logs.

List of Features

  • Foreground Colors
  • Symbols

Download & Installation

1- Install the package

$ npm i simple-terminal-color

Example Usage

1- Create "test.js" file

const log = require('simple-terminal-color')

/*-------------------------------
--------- Colored Text ----------
---------------------------------
*/

// RED
log.error("Error Text")

// GREEN
log.success("Success Text")

// YELLOW
log.warning("Warning Text")

// BLUE
log.info("Info Text")

// GRAY
log.gray("Gray Text")

// PURPLE
log.purple("Purple Text")

// PINK
log.pink("Pink Text")

// WHITE
log.white("White Text")



/*-------------------------------
---------- Bold Text ------------
---------------------------------
*/

// BOLD STYLE
log.bold().error("Bold Error Text")



/*-------------------------------
--------- Add Symbol ------------
---------------------------------
*/

// CHECK ALL SYMBOLS
console.log(log.symbols)

// ADD SYMBOL TO TEXT
log.error(log.symbols.warning+" Error Text")


2- Run

$ node test.js

License

This project is licensed under the MIT License

Keywords

FAQs

Package last updated on 16 Oct 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