Socket
Socket
Sign inDemoInstall

node-ansiterminal

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-ansiterminal

An offscreen xterm like ANSI terminal library.


Version published
Weekly downloads
375
increased by0.27%
Maintainers
1
Install size
786 kB
Created
Weekly downloads
 

Readme

Source

Build Status Coverage Status

An offscreen xterm like ANSI terminal library.

The terminal implements the interface of the node-ansiparser in ECMA5 vanilla javascript.

Quick usage example:

var AnsiTerminal = require('node-ansiterminal').AnsiTerminal;
var AnsiParser = require('node-ansiparser');
var terminal = new AnsiTerminal(80, 25, 500);
var parser = new AnsiParser(terminal);
parser.parse('\x1b[31mHello World!\x1b[0m');
console.log(terminal.toString());

See examples for some output examples or jquery.browserterminal for a jquery based browser frontend.

Documentation

See the API documentation.

TODO:

  • remove box printing chars special handling (goes to frontend)
  • bracketed paste mode
  • tabs, tab stops, tab width, tab output
  • tons of DCS and DEC special codes
  • advanced tests, vttest
  • rework mouse handling
  • more test cases
  • complete doc

Keywords

FAQs

Last updated on 22 May 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc