https://github.com/DistributedProofreaders/ppmath/blob/0c32d0a763c487240cf3062c176fc1ca6e132ca1/bin/index.js#L38