dart_printf 0.5.0
dart_printf: ^0.5.0 copied to clipboard

Very very simple format printing

example/dart_printf_example.dart

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('hello', 'Dart');
  printf([], 'Dart');
  printf('hello %s', 'Dart');
}