# string-color

> Provides a .color extension to Strings.

Latest version **0.8.0** (published 2011-05-15) · 0 weekly downloads

## Install

```sh
npm install string-color
pnpm add string-color
yarn add string-color
bun add string-color
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2011-05-15 |
| First published | 2011-05-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michelle Steigerwalt |

## Links

- npm: https://www.npmjs.com/package/string-color
- Repository: https://github.com/yuffster/npm-string-ansi
- Homepage: http://github.com/yuffster/npm-string-ansi
- npm.io page: https://npm.io/package/string-color

## Recent versions

- 0.8.0 (latest) — 2011-05-15

## README

String ANSI
----------------

A minimalist color extension module for Node.JS.

Extends the String prototype with the function `color`, which inserts ANSI color codes in place of color string names.

Run `node test.js` to see a demonstrative list of all possible colors.

Supported Color Codes
-----------------

* reset
* bold
* italic
* underline
* conceal
* strike
* reverse
* blink
* blink2
* black
* red
* green
* yellow 
* blue
* purple
* cyan
* white
* default
* bgblack
* bgred
* bggreen
* bgyellow
* bgblue
* bgpurple
* bgcyan
* bgwhite
* bgdefault

Example Usage
-----------------

    console.log("There has been an error!".color('red', 'bold');

Any number of arguments may be passed to the color method.

---
_Source: https://npm.io/package/string-color · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
