Y
Hacker News
new
|
ask
|
show
|
jobs
by
baudehlo
3746 days ago
JavaScript much to my dismay has no sprintf. It's one of the most annoying omissions ever for server side work.
3 comments
lukeschlather
3746 days ago
The biggest thing I've run into is that there's no built-in `mkdir -p`. There is, of course, a module that is literally just mkdirp.
link
mayank
3746 days ago
require('util').format gets you pretty close.
link
baudehlo
3746 days ago
No it really doesn't. It is so far away from even Perl's printf (considered ancient by most JS programmers) that it is not even funny.
link
galistoca
3746 days ago
es6 has one
link
baudehlo
3746 days ago
No it doesn't. It comes with template strings. Any sprintf type functionality requires you to call functions on the input. It is a tiny tiny step forward.
link