Wondering what’s next for npm?Check out our public roadmap! »

    @shinigami_dev/console.input

    1.0.5 • Public • Published

    usage

    basic usage

    const { input, output } = require('@shinigami_dev/console.input');
    
    const question = input('Name? ');
    // Console logs: Name?
    output(`name: ${question}`);
    // Console logs: Name? <input>
    • input() & output() are logged in the order they are defined.

    input

    const { input } = require('@shinigami_dev/console.input');
    
    const question = input('Name? ')
    // Console logs: Name?
    // After input is entered the proccess is exited if output() is not called.

    output

    const { input, output } = require('@shinigami_dev/console.input');
    
    const question = input('Name? ');
    // Console logs: Name?
    output(`name: ${question}`);
    // Console logs: Name? <input>
    // Input needs to be called for output() to function.

    Install

    npm i @shinigami_dev/console.input

    DownloadsWeekly Downloads

    9

    Version

    1.0.5

    License

    ISC

    Unpacked Size

    1.81 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar