Please consider donating to this project's author, EGOIST, to show your ❤️ and support.
- Light-weight, it's zero-dependecy
- Easy-to-use
- Developer friendly, written in TypeScript
yarn add cli-prompts
const { Prompts } = require('cli-prompts')
const prompts = new Prompts([
{
type: 'text',
name: 'username',
message: 'enter your username'
}
])
prompts.run().then(answers => {
console.log(answers)
// { username: 'input value' }
})
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
cli-prompts © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
Website · GitHub @EGOIST · Twitter @_egoistlily