New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@awsless/clui

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awsless/clui

The @awsless/clui package combines a couple of useful npm packages to create easy to use & beautiful terminal applications.

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
2
Created
Source

@awsless/clui

The @awsless/clui package combines a couple of useful npm packages to create easy to use & beautiful terminal applications.

Special thanks to:

  • @clack/prompts
  • cli-table3
  • chalk

Setup

Install with (NPM):

npm i @awsless/clui

Basic Usage

import { log, prompt, color } from '@awsless/clui';

log.intro(color.blue.bold('Create a blog post'))

const title = await prompt.text({ message: 'Title:' })
const message = await prompt.text({ message: 'Message:' })

log.list('Preview post', {
	title,
	message,
})

const ok = await prompt.confirm({ message: 'Are you sure?' })

if(!ok) {
	log.error('Canceled')
	return
}

await log.task({
	initialMessage: 'Creating post...',
	successMessage: 'You blog post was successfully created!',
	async task() {
		// Create your blog post
	}
})

log.outro('The end!')

Supported Prompts

  • prompt.text
  • prompt.password
  • prompt.integer
  • prompt.float
  • prompt.confirm
  • prompt.select
  • prompt.multiSelect

Supported Logs

  • log.intro
  • log.outro
  • log.note
  • log.message
  • log.step
  • log.info
  • log.warning
  • log.error
  • log.success
  • log.list
  • log.table
  • log.task

Supported Ansi Helpers:

  • ansi.wrap
  • ansi.length
  • ansi.truncate
  • ansi.pad

License

MIT

FAQs

Package last updated on 09 Feb 2026

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