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

3.6.7 • Public • Published

@alterior/terminal

Provides utilities useful for terminal applications, including reading input and styling output.

Reading input

import { read } from '@alterior/terminal';

let name = await read({ prompt: `What's your name? ` });

console.log(`Hello ${name}!`);

Styling output

import { styled, style } from '@alterior/terminal';

console.log(
    styled(`Hello `, style.$blue(`world`), `, how are `, style.$green(`you`), `?`)
);

Readme

Keywords

none

Package Sidebar

Install

npm i @alterior/terminal

Weekly Downloads

0

Version

3.6.7

License

MIT

Unpacked Size

51.2 kB

Total Files

49

Last publish

Collaborators

  • rezonant