OK, I think this will work as an npm module now.