I've published npm packages before, but it was like ten years ago and they were all crap. But now I've published one which is decent!
https://www.npmjs.com/package/discrete-probabilities
This is an implementation of the paper "Discrete Probabilistic Programming" by Oleg Kiselyov and Chung-chieh Shan. It provides tools for working with probability distributions as first class values. I made a number of modifications and I am pleased with the result.
I have a blog post brewing, where I hope to provide a walkthrough of the implementation. It may take a while for me to have the free time that this will require, but eventually it will be a way for me to show some of the quirky (good) approaches I took.
#nodejs #javascript #npm #programming #functionalprogramming