forked from TwilioDevEd/client-quickstart-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathname_generator.js
25 lines (21 loc) · 1.04 KB
/
name_generator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const ADJECTIVES = [
'Abrasive', 'Brash', 'Callous', 'Daft', 'Eccentric', 'Fiesty', 'Golden',
'Holy', 'Ignominious', 'Joltin', 'Killer', 'Luscious', 'Mushy', 'Nasty',
'OldSchool', 'Pompous', 'Quiet', 'Rowdy', 'Sneaky', 'Tawdry',
'Unique', 'Vivacious', 'Wicked', 'Xenophobic', 'Yawning', 'Zesty',
];
const FIRST_NAMES = [
'Anna', 'Bobby', 'Cameron', 'Danny', 'Emmett', 'Frida', 'Gracie', 'Hannah',
'Isaac', 'Jenova', 'Kendra', 'Lando', 'Mufasa', 'Nate', 'Owen', 'Penny',
'Quincy', 'Roddy', 'Samantha', 'Tammy', 'Ulysses', 'Victoria', 'Wendy',
'Xander', 'Yolanda', 'Zelda',
];
const LAST_NAMES = [
'Anchorage', 'Berlin', 'Cucamonga', 'Davenport', 'Essex', 'Fresno',
'Gunsight', 'Hanover', 'Indianapolis', 'Jamestown', 'Kane', 'Liberty',
'Minneapolis', 'Nevis', 'Oakland', 'Portland', 'Quantico', 'Raleigh',
'SaintPaul', 'Tulsa', 'Utica', 'Vail', 'Warsaw', 'XiaoJin', 'Yale',
'Zimmerman',
];
const rand = (arr) => arr[Math.floor(Math.random() * arr.length)];
module.exports = () => rand(ADJECTIVES) + rand(FIRST_NAMES) + rand(LAST_NAMES);