unique_name_generator

Creator: coderz1093

Last updated:

0 purchases

unique_name_generator Image
unique_name_generator Images
Add to Cart

Description:

unique name generator

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 #

includes a list of dictionaries
supports custom dictionaries

Installation #
dart pub add unique_name_generator
copied to clipboard
or
flutter pub add unique_name_generator
copied to clipboard
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]
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.