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

@bndynet/cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bndynet/cli

Powerful command line interface for interactive...

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
1
Created
Source

cli.js

Examples | API

Powerful command line helpers for interactive Node.js scripts.

Install

npm i @bndynet/cli

Usage

const cli = require('@bndynet/cli');

cli.info('Starting...');
cli.success({ ok: true });

The package exports:

  • logging helpers: print, log, info, warn, success, error
  • prompt helpers: input, confirm, select, questions, suggest, ask
  • terminal helpers: beginRun, beginReadFile, readFile, writeFile, replaceFileContent
  • progress helpers: progress, Progress
  • text styles: styles

Prompt Example

const cli = require('@bndynet/cli');

async function main() {
  const answers = await cli.questions([
    'Please input your name:',
    'Home page is online?',
    ['Your country:', ['China', '', 'US']],
    ['Choose or type user name::', ['Bendy', 'Joyce']],
  ]);

  cli.success(answers);
}

main();

Development

Install dependencies and build once before running the demos:

npm install
npm run build

Available demo commands:

  • npm test: build the project and run the default log demo
  • npm run test:log: log output demo
  • npm run test:io: shell command/spinner demo
  • npm run test:progress: progress bar demo
  • npm run test:question: interactive prompt demo
  • npm start: watch build
  • npm run docs: generate API docs

Screenshots

Keywords

typescript

FAQs

Package last updated on 17 Mar 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