New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bit-cmdr/ez-cli-tools

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bit-cmdr/ez-cli-tools

Typescript first CLI tools for Node.js with zero dependencies

  • 2.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

EZ CLI Tools

A Typescript first CLI tools for Node.js with zero dependencies. Easy to use to get command line input from questions and generating lists of options that the user can select from.

npm npm GitHub

Installation

NPM

npm install ez-cli-tools

Yarn

yarn add ez-cli-tools

PNPM

pnpm add ez-cli-tools

Usage

Brief Example

import { writeLine, ask, select, printSpinner, endIntervalAndClearStatus } from 'ez-cli-tools';
import { setTimeout } from 'timers/promises';

(async () => {
  const name = await ask('What is your name?');
  writeLine(`Hello ${name}`);
  const game = await select('Shall we play a game?', ['Checkers', 'Chess', 'Tic-Tac-Toe', 'Global Thermonuclear War']);
  writeLine(`Great! Let's play ${game}`);
  const intervalId = printSpinner();
  await setTimeout(10000); // Normally you would be doing a long running operation here, which is why you would show a spinner
  endIntervalAndClearStatus(intervalId);
  writeLine('An interesting game. The only winning move is not to play.');
})();

Keywords

FAQs

Package last updated on 28 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc