Giter VIP home page Giter VIP logo

blood-donor's Introduction

blood-donor NPM version Build Status Dependency Status Coverage percentage

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

compatibility

License

MIT © Hemanth.HM

blood-donor's People

Contributors

akamaozu avatar hemanth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blood-donor's Issues

Extract Blood-type Validation From Donor Matching Function

It might be better if the blood-type validation is extracted from this module into its own module that this depends on.

Sometimes you just want to know if the user has submitted a valid blood-type and this will do way more work after confirming the input type is valid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.