Skip to content

ProdioDesignWorks/Fagerstrom-Test-Prodio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fagerstrom-Test

FTND (Fagerstrom Test for Nicotine Dependence) questionnaire wording and score calculation

install

npm install fagerstrom-test-podio --save

usage

const FTND = require('fagerstrom-test-prodio');

Get a list of questions

FTND.getQuestions();

Get question choices

FTND.getChoices(0); // Q1 choice array
FTND.getChoices(4); // 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 getChoices
FTND.calculate([2,1,0,3,1,0]); // Returns 6.

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published