guided-interview
TypeScript icon, indicating that this package has built-in type declarations

0.0.57 • Public • Published

Guided Interview

An interview consists of a series of questions arranged in any way. For example:

{
    "name": {
        "id": "name",
        "type": "text",
        "title": "What is your name?",
    },
    "age": {
        "id": "age",
        "type": "number",
        "title": "How old are you?",
    },
    "licence": {
        "id": "licence",
        "type": "text",
        "title": "Write your driver’s licence number",
        "logic": {
            "showIf": "age.value >= 18"
        }
    }
}

The answers to these questions are saved in variables that can be used in subsequent questions.

You can use these results saved in variables to not show some questions.

Install

npm install guided-interview

Usage

import { GuidedInterview } from 'guided-interview'

const guidedInterview = new GuidedInterview({ interviewParams: params })

Publish package

Build library

npm run build

Run this command in terminal

np

Readme

Keywords

none

Package Sidebar

Install

npm i guided-interview

Weekly Downloads

2

Version

0.0.57

License

none

Unpacked Size

128 kB

Total Files

34

Last publish

Collaborators

  • juancamejoalarcon