0.0.0 • Published 6 years ago

cli-prompts v0.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

cli-prompts

NPM version NPM downloads CircleCI donate chat

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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