unique_name_generator 1.0.0 copy "unique_name_generator: ^1.0.0" to clipboard
unique_name_generator: ^1.0.0 copied to clipboard

Random name generator based on dictionaries.

A dart package to generate unique usernames based on dictionaries.

This library is a port of the node.js package unique-names-generator by Andrea SonnY

Features #

Installation #

dart pub add unique_name_generator

or

flutter pub add unique_name_generator

Usage #

import 'package:unique_name_generator/unique_name_generator.dart';

void main() {
  var ung = UniqueNameGenerator(
    dictionaries: [adjectives, animals],
    style: NameStyle.capital,
    separator: '_',
  );

  List<String> names = List.generate(10, (index) => ung.generate());
  print(names);

  //Output: [Painful_Wren, Primary_Chicken, Swift_Wolf, Guilty_Rhinoceros, Silent_Panther, Still_Unicorn, Frail_Aphid, Willowy_Skink, Continued_Clownfish, Magnificent_Tyrannosaurus]
}
3
likes
130
pub points
73%
popularity

Publisher

unverified uploader

Random name generator based on dictionaries.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on unique_name_generator