JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 631145
  • Score
    100M100P100Q197471F

A library of all known ansi escape sequences

Package Exports

  • ansi-escape-sequences

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ansi-escape-sequences) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

view on npm npm module downloads per month Build Status Dependency Status

work in progress, draft documentation

#ansi-escape-sequences

A simple library containing all the known ansi escape codes and sequences.

Example

var ansi = require("ansi-escape-sequences");

Symbols

###ansi.cursorUp() Moves the cursor lines (default 1) cells up. If the cursor is already at the edge of the screen, this has no effect

###ansi.cursorDown() Moves the cursor lines (default 1) cells down. If the cursor is already at the edge of the screen, this has no effect

###ansi.format(str, effectArray) Params

  • str string - the string to format
  • effectArray Array.<string> - a list of sgr effects to add

Returns: string
###ansi.reset remove all sgr effects

Type: string
###ansi.bold Bold or increased intensity

Type: string
###ansi.italic Type: string
###ansi.underline Type: string
###ansi.imageNegative Type: string
###ansi.fontDefault Type: string
###ansi.font2 Type: string
###ansi.font3 Type: string
###ansi.font4 Type: string
###ansi.font5 Type: string
###ansi.font6 Type: string