Socket
Book a DemoInstallSign in
Socket

@jamesdphillips/ansi-escape

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jamesdphillips/ansi-escape

No bells, no whistles just parsing of ANSI escape sequences.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 03 May 2025

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