any-questions
v1.0.1
Published
<h1 align="center">AnyQuestions❓</h1>
Readme
It's simple package to create custom menu, by using predefined modules.
Installation
$ npm install any-questionsUsage
const { AnyQuestions } = require('any-questions')
const states = {
firstState: {
type: 'ownAnwserQuestion',
question: 'firstState Question',
nextState: 'secondState',
},
secondState: {
type: 'ownAnwserQuestion',
question: 'secondState Question',
}
}
new AnyQuestions({states, startState: 'firstState'}).start()