Skip to content

Low level renderer for ANSI terminals written in TypeScript

License

Notifications You must be signed in to change notification settings

yuhsak/terminal-renderer

Repository files navigation

terminal-renderer

Low level renderer for ANSI terminals written in TypeScript

Install

npm install terminal-renderer

Usage

import {createTerminalRenderer} from 'terminal-renderer'

const renderer = createTerminalRenderer(process.stdout)

renderer
  .text('This is a text')
  .newLine()
  .move(10, -1)
  .text('edited text', ['blue'])
  .newLine()

// The result output:
// This is a edited text

About

Low level renderer for ANSI terminals written in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published