@es-git/terminal
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

terminal

This is part of the ES-Git project.

Install

npm install --save @es-git/terminal

Usage

import Teminal from '@es-git/terminal';

//Create a terminal, and log to the console
const terminal = new Terminal(m => console.log(m));

//log normal text
terminal.log('ready');//ready

//carriage return (\r) will reset cursor to start of line
terminal.log('\rset\r');//set

//append newline at end of line
terminal.logLine('go!!!');//go!!!

//append just a newline
terminal.logLine();//go!!!\n

console.log(terminal.content); //go!!!

Readme

Keywords

none

Package Sidebar

Install

npm i @es-git/terminal

Weekly Downloads

1

Version

0.10.0

License

MIT

Unpacked Size

26.1 kB

Total Files

16

Last publish

Collaborators

  • mariusgundersen