Node.js implementation of PostgreSQL's format() function.