sprintf

Sprintf() for node.js

npm install sprintf
3 200 downloads in the last day
16 886 downloads in the last week
77 645 downloads in the last month

sprintf() for node

Disclaimer

This was originally just an adoption of a browser library to node.js.
Since that library is now itself a node.js module, you should check that out: alexei/sprintf.js

There is also a built-in util.format.

Install

npm install sprintf

How to

Works exactly like http://www.diveintojavascript.com/projects/javascript-sprintf, except that it exports those two functions:

sprintf = require('sprintf').sprintf;
vsprintf = require('sprintf').vsprintf;

Have fun!

npm loves you