Skip to content

jamesdphillips/ansi-escape

Repository files navigation

ansi-escape

No bells or whistles parsing of ANSI escape sequences.

☁️ Installation

# Using yarn
yarn add @jamesdphillips/ansi-escape

# Using npm
npm install --save @jamesdphillips/ansi-escape

🚀 Usage

import parse from "@jamesdphillips/ansi-escape";

const content = "\x1B[38;5;1mred\x1B[0m";
const parsedContent = parse(myContent);
// ...

👩‍🎨 Previous Art

Parser largely borrowed from anser.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published