sprintf-js is a complete open source JavaScript sprintf implementation for the browser and Node.js. It provides `sprintf` and `vsprintf` to format strings using `%` placeholders with options like padding, alignment, precision, and multiple type specifiers, including support for argument swapping, named arguments, and AngularJS use.
Project status
- The source appears to be a JavaScript sprintf implementation, with evidence of at least some maintenance activity (side fact: last upstream push on 2024-04-05), but the provided “recent update summaries” only cover tags from 2013 (v0.5 to v0.7).
- Update cadence looks very irregular, with the latest summarized updates dating to 2013, which suggests long stretches between notable tagged updates.
AI summary generated Today
Recent updates
v0.7
4/2/2013v0.7-beta1 refactors the sprintf implementation in src/sprintf.js. The code adds vsprintf and support for named placeholders, introduces a format parsing cache, and tightens validation around argument types.
v0.6
4/2/2013Version v0.6 updates src/sprintf.js with small formatting/code style changes and, more importantly, alters the numeric sign handling logic used by sprintf for several format specifiers. The release notes section is empty, so the behavioral impact must be inferred from the code diff.
Breakingv0.5
4/2/2013The release notes for v0.5 were not provided by the publisher (release notes field is empty). As a result, there is no documented information about new features, bug fixes, breaking changes, or security updates in this release.