jsish
Format
Not logged in

The sprintf command adds printf like functionality to javascript, eg.

var s, me = 'Me', cnt = 9;
s = format('Help %s = %d!', me, cnt);

This sometimes more convenient than the traditional:

s = 'Help ' + me + ' = ' + cnt + '!';

which ends up dealing with a lot of quotes and plus signs. Format also simplifies aligned output:

s = format('Help %-20s = %d!', me, cnt);