I thought I'd browse the source code and find a cool tool that does this using basic unix commands and syscalls. But then:
#!/usr/bin/env node
facepalm. And since the code uses an etherpad dependency, it is completely trivial. How is this HN-worthy?