PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 22
  1. 7.0.0 30 Sep 2022
    Release notes
    • Fix inf and nan formatting ( close #33 )
    Open source →
    Release notes
    • properly format Infinity and NaN for %f and %G (#33)
    Open source →
  2. 6.0.2 10 Aug 2022
    Release notes
    • pub policy compliance
    Open source →
  3. 6.0.0 04 Mar 2021
    Release notes
    • Promote null-safety to stable
    Open source →
  4. 6.0.0-nullsafety 10 Dec 2020 pre-release
    Release notes
    • Add null-safety support
    Open source →
  5. 5.0.0 26 Sep 2020
    Release notes
    • fix positional args
    Open source →
    Release notes
    • 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|'
    Open source →
  6. 4.1.0 26 Jul 2020
    Release notes
    • Used dart padentic to fix up some code
    • changed SDK requirements to be >=2, <3
    Open source →
    Release notes
    • Used dart padentic to fix up some code
      • changed SDK requirements to be >=2, <3
    Open source →
  7. 4.0.3 26 Jul 2020
    Release notes
    • Fixed formatting of "1.0" (#18); it was being truncated to "1" and then failing the regex.
    Open source →
  8. 4.0.2 20 Feb 2019
    Release notes

    fix formatter for "%0.1f"

    Open source →
    Release notes
    • Fixed v4.0.1
      • Fixed rounding bug if 0 or 1 digits of rounding are requested (#15)
    Open source →
  9. 4.0.1 19 Feb 2019
    Release notes
    • allow 0 and 1 decimal places for rounding
    Open source →
    Release notes
    • BROKEN Fixed rounding bug if 0 or 1 digits of rounding are requested (#15)
    Open source →
  10. 4.0.0 28 Jul 2018
    Release notes
    • 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!
    Open source →
  11. 3.0.2 18 Aug 2017
    Release notes
    • Fixed bad publish
    Open source →
  12. 3.0.1 18 Aug 2017
    Release notes
    • Fixed weak typing which stopped dartdevc from working (#11 thanks @bergwerf)
    Open source →
  13. 3.0.0 20 Apr 2017
    Release notes
    • Fixed rounding of floats, again. Bumping major version because it's different from previous behaviour
    Open source →
  14. 1.0.8 09 Oct 2013
    Release notes
    • Remove trailing decimal point if there are no following digits (#6)
    Open source →
  15. 1.0.7 07 May 2013
    Release notes
    • Update for new dart version
    Open source →
  16. 1.0.6 16 Apr 2013
    Release notes
    • Update for new dart version
    Open source →
  17. 1.0.5 29 Mar 2013
    Release notes
    • Fixed dependencies example in README (#5)
    Open source →
  18. 1.0.4 21 Mar 2013
    Release notes
    • Update for new dart version

      • Update for new pubspec format
    Open source →
  19. 1.0.3 12 Feb 2013
    Release notes
    • Update for dart M2
    Open source →
  20. 1.0.2 12 Feb 2013
    Release notes
    • Pubspec and whitespace fixes
    Open source →
  21. 1.0.1 16 Nov 2012
    Release notes
    • Update for new dart version
    Open source →
  22. 1.0.0-alpha1 08 Oct 2012 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive