1.0.1 • Published 3 years ago

any-questions v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

It's simple package to create custom menu, by using predefined modules.

Installation

$ npm install any-questions

Usage

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()