1.0.2 • Published 6 years ago

prompt-block v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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);
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago