Skip to content
pubscout

namefully

0.2.1, released 3 years ago by ralflorent.com

A Dart utility for handling, formatting, and validating person names.

WASM-ready
$ flutter pub add namefully
Source repository

What it does

It provides a robust set of tools to parse, format, validate, and manipulate person names in various shapes, orders, and writing systems. It handles prefixes, suffixes, initials, middle names, and compound surnames easily.

AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to format user names consistently across different orders (e.g. given name first vs surname first).
  • You are dealing with parsing raw name strings or generating initials and short name variants.
  • You need predefined validation rules for various writing systems and characters.

Skip it when

  • You need to parse mononames (like 'Plato') or multiple prefixes (like 'Prof. Dr. Einstein').
  • You are looking for general text manipulation that isn't specific to human names.

Strengths

  • Supports multiple naming conventions, writing systems, and compound surnames.
  • Highly configurable through the Config API and custom parsers.
  • Zero external dependencies.

Weaknesses

  • Does not support mononames or multiple prefixes.
  • Non-standard name cases may require manual parsing and can throw exceptions.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:namefully/namefully.dart';

void main() {
  var name = Namefully('Thomas Alva Edison');
  print(name.short); // Thomas Edison
  print(name.format('L, f m')); // EDISON, Thomas Alva
}

Alternatives

Packages that do the same job and could replace namefully.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • mime

    Utilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.

  • package_signature

    Retrieve Android package signature (SHA1/SHA256) in a Flutter app.