sprintf
Dart implementation of sprintf. Provides simple printf like formatting such as sprintf("hello %s", ["world"]);
7.0.0
6.0M downloads/mo
#122 most downloaded on pub.dev
Naddiseo/dart-sprintf
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 3.5 years
Nearly every release is documented
notes for 20 of 20 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
22 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
22 releases · Oct 2012 to Sep 2022
2013
2015
2017
2019
2021
2023
2025
Releases
latest 22-
7.0.030 Sep 2022 -
6.0.210 Aug 2022 -
6.0.004 Mar 2021 -
6.0.0-nullsafety10 Dec 2020 pre-release -
5.0.026 Sep 2020Release notes
Open source →- Fix #22: position arguments didn't work. Major version bump because it's
a different API. The following now works:
sprintf('|%2\$d %2\$d %1\$d|', [5, 10]); // '|10 10 5|'
- Fix #22: position arguments didn't work. Major version bump because it's
a different API. The following now works:
-
4.1.026 Jul 2020Release notes
Open source →- Used dart padentic to fix up some code
- changed SDK requirements to be >=2, <3
Release notes
Open source →- Used dart padentic to fix up some code
- changed SDK requirements to be >=2, <3
-
4.0.326 Jul 2020Release notes
Open source →- Fixed formatting of "1.0" (#18); it was being truncated to "1" and then failing the regex.
-
4.0.220 Feb 2019Release notes
Open source →- Fixed v4.0.1
- Fixed rounding bug if 0 or 1 digits of rounding are requested (#15)
- Fixed v4.0.1
-
4.0.119 Feb 2019Release notes
Open source →- BROKEN Fixed rounding bug if 0 or 1 digits of rounding are requested (#15)
-
4.0.028 Jul 2018Release notes
Open source →- Breaking change (#13) As of dart 2, int types are going to be fixed width, and the width depends on implementation (dart2js vs dartvm). Dart started warning about constants that are greater than the max int of javascript. To fix that, this patch will limit int (when formatted as hex or octal) to the max limit of javascript (253 - 1). Any int outside of the +-(253 -1) range is not guaranteed to format correctly!
-
3.0.218 Aug 2017 -
3.0.118 Aug 2017Release notes
Open source →- Fixed weak typing which stopped dartdevc from working (#11 thanks @bergwerf)
-
3.0.020 Apr 2017Release notes
Open source →- Fixed rounding of floats, again. Bumping major version because it's different from previous behaviour
-
1.0.809 Oct 2013 -
1.0.707 May 2013 -
1.0.616 Apr 2013 -
1.0.529 Mar 2013 -
1.0.421 Mar 2013 -
1.0.312 Feb 2013 -
1.0.212 Feb 2013 -
1.0.116 Nov 2012 -
1.0.0-alpha108 Oct 2012 pre-releaseNothing published for this version