Likert
Survey data flow engine.
Install
npm install likert
Usage
; const spec = 'Do you like vegetables?': options: 'Yes' 'No' { if answer === 'Yes' return 'What\'s your favorite vegetable?'; else return 'Thank you for taking our survey! Any last words?'; } 'What\'s your favorite vegetable?': options: 'Corn' 'Carrots' 'Tomatoes' { if answer === 'Tomatoes' return 'You do realize tomatoes are a fruit, right?'; else return 'Thank you for taking our survey! Any last words?'; } 'You do realize tomatoes are a fruit, right?': 'Yes' 'No' 'Thank you for taking our survey! Any last words?': {} const question1 = ;const question2 = question1;const question3 = question2;const question4 = question3;
License
MIT
pori.io · GitHub @pori · Twitter @pori_alex