Fagerstrom-Test
FTND (Fagerstrom Test for Nicotine Dependence) questionnaire wording and score calculation
install
npm install fagerstrom-test --save
usage
const FTND = ;
Get a list of questions
FTND;
Get question choices
FTND; // Q1 choice arrayFTND; // Q5 choice array
Calculate score
// Argument is an array of answers from Q1 to Q6. It passes a column of array index values obtained with getChoicesFTND; // Returns 6.
LICENSE
MIT