Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@alterior/terminal

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alterior/terminal

Utilities for terminal applications

Source
npmnpm
Version
3.1.11
Version published
Weekly downloads
122
838.46%
Maintainers
1
Weekly downloads
 
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 08 Feb 2023

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