Socket
Book a DemoInstallSign in
Socket

@alterior/terminal

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alterior/terminal

Utilities for terminal applications

latest
Source
npmnpm
Version
3.6.7
Version published
Maintainers
1
Created
Source

@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`), `?`)
);

FAQs

Package last updated on 04 Feb 2024

Did you know?

Socket

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