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

synchro-prompt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synchro-prompt

super simple synchronous cli prompt using readline-sync with chalk coloring

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-70%
Maintainers
1
Weekly downloads
 
Created
Source

synchro-prompt

Wrapper around readline-sync with chalk coloring for synchronous cli prompting.

Install

npm install synchro-prompt

Usage

prompt(<String|Array<String>>, [options])
var prompt = require('synchro-prompt');

var answer = prompt('Enter value: ');
answer instanceof String; // true

// or as an array
var answers = prompt(['Name: ', 'Age: ']);
answers instanceof Array; // true
Options
// defaults
{
  color: 'yellow',
  format: true, // trim and toLowerCase
  validate: function(input) {}
}

License

lokua.net/license-mit

Keywords

FAQs

Package last updated on 17 Nov 2014

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