UNPKG

@xaroth8088/random-names

Version:

A random name generator for all kinds of things

18 lines (16 loc) 3.6 kB
import { sample } from 'lodash-es'; export default function oasis() { let names; const nm1 = ['Abyssal', 'Airy', 'Amber', 'Ancient', 'Angelic', 'Arcane', 'Arctic', 'Aromatic', 'Aurora', 'Awoken', 'Azure', 'Beryl', 'Blossom', 'Blossoming', 'Blue Moon', 'Blushing', 'Boiling', 'Bold', 'Brilliant', 'Bronze', 'Bubbling', 'Carmine', 'Cerulean', 'Changing', 'Chasm', 'Chittering', 'Chuckling', 'Claret', 'Cleansing', 'Coiling', 'Convex', 'Crane', 'Crawling', 'Crescent', 'Croaking', 'Curiosity', 'Curious', 'Dahlia', 'Dancing', 'Dark', 'Daydream', 'Demilune', 'Discovery', 'Divine', 'Eastern', 'Ebony', 'Electric', 'Empty', 'Enchanted', 'Enchanting', 'Enigma', 'Enlightened', 'Enlightenment', 'Evergreen', 'False', 'Firefly', 'Flickering', 'Foggy', 'Forbidden', 'Forsaken', 'Fragrant', 'Frozen', 'Geiser', 'Glass', 'Gleaming', 'Glistening', 'Glowing', 'Golden', 'Grand', 'Great', 'Halcyon', 'Half', 'Harmony', 'Hollow', 'Holy', 'Hotspring', 'Infinite', 'Infinity', 'Ivory', 'Jade', 'Laughing', 'Lava', 'Little', 'Living', 'Lone', 'Lonely', 'Lost', 'Luminous', 'Lunar', 'Lune', 'Lurking', 'Lustrious', 'Lustrous', 'Magma', 'Majestic', 'Malachite', 'Mammoth', 'Maroon', 'Meditating', 'Meditation', 'Merry', 'Mountain', 'Mumbling', 'Mystery', 'Nightmare', 'Northern', 'Observing', 'Oracle', 'Ornate', 'Petal', 'Phantom', 'Pinnacle', 'Pioneer', 'Prime', 'Radiant', 'Raging', 'Repose', 'Resting', 'Roaring', 'Royal', 'Rumbling', 'Running', 'Rustling', 'Saffron', 'Sanguine', 'Sapphire', 'Savage', 'Scarlet', 'Scented', 'Serene', 'Serenity', 'Serpent', 'Shade', 'Shadow', 'Shady', 'Shallow', 'Shimmering', 'Shivering', 'Shrouded', 'Sickle', 'Silent', 'Silver', 'Skyfall', 'Sleeping', 'Sleepy', 'Smoldering', 'Sneaking', 'Snoring', 'Solitude', 'Soothing', 'Southern', 'Sparkling', 'Starfall', 'Sweet', 'Swirling', 'Tamed', 'Tempered', 'Tempest', 'Timeless', 'Tranquil', 'Tranquility', 'Triumph', 'Twin', 'Veiled', 'Velvet', 'Verdigris', 'Vertex', 'Vibrant', 'Vine', 'Violet', 'Viridian', 'Volcano', 'Vortex', 'Waking', 'Wandering', 'Watching', 'Weeping', 'Western', 'Whisper', 'Whispering', 'Whistle', 'Whistling', 'Wicked', 'Wilted', 'Windy', 'Wish', 'Wishing', 'Youth']; const nm2 = ['Oasis', 'Spring', 'Fountain', 'Oasis', 'Oasis', 'Oasis', 'Oasis', 'Oasis', 'Oasis', 'Oasis']; const nm3 = ['Afternoons', 'Ancestors', 'Angels', 'Animals', 'Arcane', 'Auras', 'Autumn', 'Ballance', 'Change', 'Clouds', 'Crimson', 'Crossroads', 'Curiosity', 'Daydreams', 'Desire', 'Destiny', 'Discovery', 'Dreams', 'Fall', 'Fortune', 'Gardens', 'Glass', 'Gold', 'Guidance', 'Harmony', 'Hope', 'Ice', 'Infinity', 'Iron', 'Jade', 'Jewels', 'Knowledge', 'Life', 'Light', 'Lights', 'Love', 'Luck', 'Magic', 'Meditation', 'Melodies', 'Memories', 'Metal', 'Music', 'Observation', 'Ornaments', 'Passages', 'Peace', 'Pleasure', 'Pleasures', 'Power', 'Prosperity', 'Purity', 'Rain', 'Rhythms', 'Riddles', 'Roses', 'Sanctity', 'Sanctuaries', 'Sapphire', 'Scents', 'Serenity', 'Serpents', 'Shadows', 'Shrines', 'Silk', 'Silver', 'Smiles', 'Solitude', 'Song', 'Spirits', 'Spring', 'Steam', 'Summer', 'Thought', 'Thoughts', 'Thrills', 'Time', 'Tranquility', 'Treasures', 'Voices', 'Voyages', 'Waves', 'Whispers', 'Wind', 'Winter', 'Wishes', 'Youth', 'the Aurora', 'the Celestial', 'the Clouds', 'the Divine', 'the Garden', 'the Light', 'the Moon', 'the Night', 'the Senses', 'the Sky', 'the Stars', 'the Sun', 'the Temple']; const i = Math.floor(Math.random() * 10); { if (i < 5) { names = `The ${sample(nm1)} ${sample(nm2)}`; } else { names = `The ${sample(nm2)} of ${sample(nm3)}`; } return names; } }