0.0.0 • Published 6 years ago
cli-prompts v0.0.0
cli-prompts
Please consider donating to this project's author, EGOIST, to show your ❤️ and support.
Features
- Light-weight, it's zero-dependecy
- Easy-to-use
- Developer friendly, written in TypeScript
Install
yarn add cli-prompts
Usage
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' }
})
Contributing
- 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
Author
cli-prompts © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
Website · GitHub @EGOIST · Twitter @_egoistlily
0.0.0
6 years ago