New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hexpaint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexpaint

Colorize terminal output with ANSI escape codes, using HEX colors

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

hexpaint

Colorize terminal output with ANSI escape codes, using HEX colors. Minimalistic chunk of 'chalk' or 'ansi-colors'. It only colorize text or background with HEX color notation, nothing more! Minified JS takes less than 1K. Correctly treats nested colors.

hexpaint-wrap-bg    hexpaint-open-codes hexpaint-open-tcolor hexpaint-text

Usage

import { hexbg, hexpaint } from 'hexpaint';

console.log(hexpaint('F44336', 'material red'));

console.log(hexbg('689F38'), 23, 'some text', true, hexbg());

console.log(hexbg('F57F17')); // start background
console.log('some text here')
console.log('on several lines')
console.log(hexpaint('B71C1C', 'with colorized text'))
console.log(); // additional newline
console.log(hexbg()); // reset background to default
console.log('no more bg here')

Keywords

format

FAQs

Package last updated on 31 May 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