blood-donor
v1.1.0
Published
Donors for a blood type.
Downloads
6
Readme
blood-donor
Donors for a blood type.
Installation
$ npm install --save blood-donor
Usage
var bloodDonor = require('blood-donor');
bloodDonor('B+ve', function (err, data) {
console.log(data);
});
/* =>
{ ideal: 'B+ve',
donors: [ 'B+ve', 'O+ve' ],
criticalDonors: [ 'B-ve', 'O-ve' ] }
*/
CLI
$ npm install --global blood-donor
$ blood-donor b+ve
Ideal donor: B+ve
Donors: B+ve or O+ve
Crital Donors (Rh+): B-ve or O-ve
License
MIT © Hemanth.HM