Skip to content

sanriqing/command-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read Me


this is a simple node command prompt.

Installation

yarn add command-prompt

API Examples

const prompt = require('command-prompt')
prompt('hello guys').then(anwser=>{
    console.log('anwser',anwser)
})

const {confirm,mutil,password } = prompt

confirm('are you ok?').then(bool=>{
    console.log('bool',bool)
})

mutil(['test 1 ','test 2']).then(anwserArr=>{
    console.log('anwserArr',anwserArr)
})

password('please enter your password').then(password=>{
    console.log('password',password)
})

License

MIT

About

this is a simple node command prompt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published