Nondeterministic Programming Methodology

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

    Keywords

    Install

    npm i prompt-block

    DownloadsWeekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.99 kB

    Total Files

    4

    Last publish

    Collaborators

    • danielgjackson