Skip to content

Zfinix/username_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

username_gen

Random username generator

This is a simple package to create random usernames. To user it simply make these commands, ported from Javascript l

import 'package:username_gen/username_gen.dart';

var username = UsernameGen.random(); // sharpened-whiskey87

 //OR

final username = UsernameGen().generate(); // sharpened-whiskey87

If you want to set an array of name (nouns) and or adjectives use these commands and also if you want to use a different seperator commands

import 'package:username_gen/username_gen.dart';

final username = UsernameGen.generateWith(
    data: UsernameGenData(
        names: ['new names'],
        adjectives: ['new adjectives'],
    ),
    seperator: '_'
); // pink-harmonica17

 //OR

final username = UsernameGen()
      ..setNames(['new names'])
      ..setSeperator('_')
      ..setAdjectives(['new adjectives'])
      ..generate(); // pink-harmonica17
      

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages