1.2.0 • Published 3 years ago

@intocare/katz-category v1.2.0

Weekly downloads
253
License
MIT
Repository
github
Last release
3 years ago

katz-category Build Status codecov

Calculate the katz category based on the score

Install

$ npm install @intocare/katz-category

Usage

const katzCategory = require('@intocare/katz-category');

katzCategory('33111111');
//=> 'A'

katzCategory('33333111', true);
//=> 'CD'

API

katzCategory(score, dementia)

score

Type: string

A 6 or 8-digit string respresenting the KATZ score.

dementia

Type: boolean Default: false

Flag to indicate whether dementia should be taken into account.

License

MIT © Sam Verschueren

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

5 years ago

1.0.0

5 years ago