Sprintf() for node.js

npm install sprintf
3 154 downloads in the last day
17 115 downloads in the last week
77 557 downloads in the last month

sprintf() for node


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.


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