Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.01 KB

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.