prompt-block

1.0.2 • Public • Published

prompt

Synchronous/blocking, easy-to-use input from stdin for command-line Node.js. Blocking I/O in Javascript is wrong and shouldn't be done! This is only intended for early, simple teaching of input in Javascript, and is designed to have the same parameters as window.prompt().

Usage:

const prompt = require('prompt')

const name = prompt('What is your name?', 'Anonymous')
console.log("Hello", name);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i prompt-block

      Weekly Downloads

      0

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      2.99 kB

      Total Files

      4

      Last publish

      Collaborators

      • danielgjackson