dart_printf 0.6.0 copy "dart_printf: ^0.6.0" to clipboard
dart_printf: ^0.6.0 copied to clipboard

Very very simple format printing

Dart Printf #

Very very simple format printing

Install #

dependencies:
  dart_printf:
copied to clipboard

Usage #

import 'package:dart_printf/dart_printf.dart';

void main() {
  printf(
    '%s--%d--%f--%e--%b--%d--%x--%X--%x--%X--%4x--%4X--%8x--%8X--%2X--%o',
    'hi', 1, 1.1, 1.2, true, false, 10, 10, true, false, 10, 10, 10, 10, true, []
  );

  printf('hello %s, [%s] lib', 'world', 'printf');
  print(printfr('hello %s, [%s] lib', 'world', 'printf'));

  printf('Dart');
}
copied to clipboard

Run Test #

> pub run test .\test\dart_printf_test.dart

λ dart test ./test/dart_printf_test.dart
copied to clipboard
0
likes
140
points
541
downloads

Publisher

verified publisherajanuw.lol

Weekly Downloads

2024.09.19 - 2025.04.03

Very very simple format printing

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_printf