unique_names_generator 1.1.0 copy "unique_names_generator: ^1.1.0" to clipboard
unique_names_generator: ^1.1.0 copied to clipboard

Unique name generator package for generating random and unique names.

Unique Name Generator (Dart Package) #

This Dart package specializes in generating random and unique names.

Note: This is a Dart adaptation of the npm package unique-names-generator.

🚀 Features #

  • Built-in Dictionaries: A variety of default dictionaries included.
  • Customization: Ability to use custom dictionaries.

đŸ•šī¸ How to Use #

Configuration Options #

Create a Config() object with the following parameters for the generator:

  • length: Number of words to generate.
  • separator: Character to separate words (default '_').
  • dictionaries: Sources of words (choose from predefined or add custom ones).
  • style: Desired style for word generation.

Style Options #

  • Style.lowerCase
  • Style.capital
  • Style.upperCase

Predefined Dictionaries #

  • adjectives
  • animals
  • colors
  • countries
  • languages
  • names
  • starWars

Example Code #

final generator = UniqueNamesGenerator(
      config: Config(
        dictionaries: [adjectives, animals, colors]
      ),
    );

final word = generator.generate();
3
likes
150
points
100
downloads

Publisher

unverified uploader

Weekly Downloads

Unique name generator package for generating random and unique names.

Homepage
Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on unique_names_generator