Message format utility for Node.js