# jansi

> Better ANSI

Latest version **0.0.3** (published 2014-04-30) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install jansi
pnpm add jansi
yarn add jansi
bun add jansi
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-04-30 |
| First published | 2014-04-30 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JD Ballard |
| Maintainers | qixx |
| Keywords | ansi, text, console, tty |

## Links

- npm: https://www.npmjs.com/package/jansi
- Repository: git@bitbucket.org:Qix/jansi
- Issues: https://bitbucket.org/Qix/jansi/issues
- npm.io page: https://npm.io/package/jansi

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.0.3 (latest) — 2014-04-30
- 0.0.2 — 2014-04-30
- 0.0.1 — 2014-04-30

## README

# JANSI

JANSI is a simple abstraction of the ANSI library that adds user-readable
function names to ANSI escape codes.

Further, JANSI allows strings to be color-formatted according to the
[Minecraft color scale](http://minecraft.gamepedia.com/Formatting_codes#Color_codes)
using `$` as a delimiter.

> The reason behind this is that the list is already there, it makes sense,
> and it's a really easy way to throw color into a string.

### Usage

```javascript
var jansi = require('jansi');
var $ = jansi.$;

process.stdout.write('Hello!');
jansi.left(6);
process.stdout.write('J');
jansi.right(6);
process.stdout.write('\n');

console.log($('$!Hello, $AW$Bo$Ar$Bl$Ad$!!'));
```

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