myprompt

0.0.0 • Public • Published

myprompt

A synchronous prompt function for Node, in the tradition of prompt() in the browser. Based on sync-prompt.

Install

npm install myprompt

Usage

var prompt = require('myprompt')
 
var name = prompt('What\'s your name?')
 
console.log('Hello, ' + name + '!')
var age = Number(prompt('How old are you?'))
console.log('Next year, you\'ll be ' + (age + 1) + ' years old!')

Readme

Keywords

Package Sidebar

Install

npm i myprompt

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • airportyh