Skip to content

Commit 1b0a21a

Browse files
feat: add $randomCompanyName predefined variable (hoppscotch#5479)
Co-authored-by: jamesgeorge007 <[email protected]>
1 parent 76e6c3a commit 1b0a21a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

packages/hoppscotch-data/src/predefinedVariables.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,38 @@ export const HOPP_SUPPORTED_PREDEFINED_VARIABLES: PredefinedVariable[] = [
289289
},
290290
},
291291

292+
// Company names
293+
{
294+
key: "$randomCompanyName",
295+
description: "A random company name.",
296+
getValue: () => {
297+
const companyNames = [
298+
"Nexora",
299+
"CodeLoom",
300+
"BitHaven",
301+
"SynapseWorks",
302+
"VoltEdge",
303+
"Elevoria",
304+
"Bridgent",
305+
"Verniq",
306+
"Corevia",
307+
"Stratigen",
308+
"Lunova Studio",
309+
"Pixelora",
310+
"MuseMind",
311+
"BrightNest",
312+
"Auralis",
313+
"VerdaFlow",
314+
"BloomShift",
315+
"PureTrek",
316+
"EcoVerse",
317+
"ReLeaf Labs",
318+
]
319+
320+
return companyNames[Math.floor(Math.random() * companyNames.length)]
321+
},
322+
},
323+
292324
// Addresses
293325
{
294326
key: "$randomCity",

0 commit comments

Comments
 (0)