beginpm-questions

0.0.0 • Public • Published

beginpm-questions

Easily ask questions in your beginpm setup.

This is meant to be used with beginpm, and it probably won't be useful anywhere else.

use

Inside your opinion file, you can ask questions:

export default {
	actionSettings: {
		'beginpm-questions': {
			questions: [{
				question: 'What is your name?',
				valid: name => name.length > 10 ? 'This is an error message.' : false
			},{
				question: 'What is your age?',
				transform: age => parseInt(age, 10) || 0
			}]
		}
	}
}

options

questions (array)

A list of objects which will be registered as beginpm questions.

license

This module beginpm-questions, and all code and documentation, is published under the Very Open License

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i beginpm-questions

      Weekly Downloads

      2

      Version

      0.0.0

      License

      VOL

      Last publish

      Collaborators

      • saibotsivad