sprintf 7.0.0 copy "sprintf: ^7.0.0" to clipboard
sprintf: ^7.0.0 copied to clipboard

Dart implementation of sprintf. Provides simple printf like formatting such as sprintf("hello %s", ["world"]);

135
likes
130/ 160
pub points
4.84M
downloads

We analyzed this package 3 days ago, and awarded it 130 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-2-Clause.

Failed report section
Provide documentation
0 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

0 out of 28 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: sprintf, sprintf.FloatFormatter, sprintf.FloatFormatter.FloatFormatter, sprintf.FloatFormatter.asExponential, sprintf.FloatFormatter.asFixed.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 49 issues. Showing the first 2:

INFO: The part-of directive uses a library name.

lib/src/formatters/Formatter.dart:1:1

1part of sprintf;
  │ ^^^^^^^^^^^^^^^^
  ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/formatters/Formatter.dart

INFO: The variable name 'fmt_type' isn't a lowerCamelCase identifier.

lib/src/formatters/Formatter.dart:4:7

4var fmt_type;
  │       ^^^^^^^^
  ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/formatters/Formatter.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.18, Dart 3.7.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
May 22Jun 19Jul 17Aug 14Sep 11Oct 9Nov 6Dec 4Jan 1Jan 290200k400k600k800k1M1.2M1.4M>=7.0.0-0 <8.0.0>=6.0.0-0 <7.0.0>=5.0.0-0 <6.0.0>=4.0.0-0 <5.0.0>=3.0.0-0 <4.0.0Other
135
likes
130
points
4.84M
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.07 - 2025.02.19

Dart implementation of sprintf. Provides simple printf like formatting such as sprintf("hello %s", ["world"]);

Repository (GitHub)

Documentation

API reference

License

BSD-2-Clause (license)

More

Packages that depend on sprintf