A hypergeometric calculator implemented in Javascript.
npm install hypergeo
or
yarn add hypergeo
To calculate the PMF:
const hypergeo = require('hypergeo');
hypergeo.pmf(N,k,n,x)
Where N = total population size, k = number of possible successes, n = number of draws (sample size), x = number of successes in sample