inquirer-chalk-pipe

A inquirer plugin for input chalk-pipe style strings

Install

$ npm install inquirer-chalk-pipe

Usage

inquirer.registerPrompt('chalk-pipe', require('inquirer-chalk-pipe'));

If you are using [email protected] or later, you don't need to register this plugin, just use the transformer option in input prompt:

const inquirer = require('inquirer')
const chalkPipe = require('chalk-pipe')

inquirer.prompt([
  {
    type: 'input',
    name: 'fav_color',
    message: "What's your favorite color",
    transformer: function(color) {
      return chalkPipe(color)(color);
    }
  }
])

Example

Here is example.

  • chalk-pipe - Create chalk style schemes with simpler style strings
  • inquirer - A collection of common interactive command line user interfaces

License

MIT © LitoMore

Inquirer Chalk Pipe

A inquirer plugin for input chalk-pipe style strings

Inquirer Chalk Pipe Info

⭐ Stars 13
🔗 Source Code github.com
🕒 Last Update 10 months ago
🕒 Created 4 years ago
🐞 Open Issues 0
➗ Star-Issue Ratio Infinity
😎 Author LitoMore