Closed Temaruk closed 9 years ago
Thank you for your time and effort in creating this awesome package!
It occurred to me that switching to https://github.com/alexei/sprintf.js might be as simple as 2 line changes. This is the lib on which the currently used (https://github.com/maritz/node-sprintf) is based (as mentioned in its docs).
One benefit I can see over the old one (there might be many more) is that interpolations would support computed values (functions). Would have been really useful for me. :)
@Temaruk, do you mind creating a pull request? I'm currently really busy doing other things...
@martinandert I have created a PR as you requested, please check!
Thank you for your time and effort in creating this awesome package!
It occurred to me that switching to https://github.com/alexei/sprintf.js might be as simple as 2 line changes. This is the lib on which the currently used (https://github.com/maritz/node-sprintf) is based (as mentioned in its docs).
One benefit I can see over the old one (there might be many more) is that interpolations would support computed values (functions). Would have been really useful for me. :)