namefully 0.1.1 copy "namefully: ^0.1.1" to clipboard
namefully: ^0.1.1 copied to clipboard

outdated

A Dart utility for handling person names in a particular order, way, or shape.

example/namefully.dart

import 'package:namefully/namefully.dart';

void main() {
  // Gives a simple name super power.
  var name = Namefully('Jon Stark Snow');
  // Gets the count of characters, excluding space.
  print(name.count); // 12
  // Gets the count of characters, including space.
  print(name.length); // 14
  // Gets the first name.
  print(name.firstName()); // Jon
  // Gets the first name.
  print(name.lastName()); // Snow
  // Gets all the initials.
  print(name.initials(withMid: true)); // ['J', 'S', 'S']
  // Formats as desired.
  print(name.format('L, f m')); // SNOW, Jon Stark
  // Make it short.
  print(name.shorten()); // Jon Snow
  // Make it flat.
  print(name.zip()); // Jon S. S.
  // Make it uppercase.
  print(name.upper()); // JON STARK SNOW
  // Transforms it to dot.case.
  print(name.dot()); // jon.stark.snow
}
40
likes
0
pub points
81%
popularity

Publisher

verified publisherralflorent.com

A Dart utility for handling person names in a particular order, way, or shape.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on namefully