It's a cmd(common module definition) implementation based on https://github.com/alexei/sprintf.js