From 1b0a21a3b264dc53640b92cdc28bf8163403b39d Mon Sep 17 00:00:00 2001 From: Eman Fateen Date: Mon, 27 Oct 2025 18:29:39 +0300 Subject: [PATCH] feat: add `$randomCompanyName` predefined variable (#5479) Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com> --- .../src/predefinedVariables.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/hoppscotch-data/src/predefinedVariables.ts b/packages/hoppscotch-data/src/predefinedVariables.ts index bfac2fb1..a3569f28 100644 --- a/packages/hoppscotch-data/src/predefinedVariables.ts +++ b/packages/hoppscotch-data/src/predefinedVariables.ts @@ -289,6 +289,38 @@ export const HOPP_SUPPORTED_PREDEFINED_VARIABLES: PredefinedVariable[] = [ }, }, + // Company names + { + key: "$randomCompanyName", + description: "A random company name.", + getValue: () => { + const companyNames = [ + "Nexora", + "CodeLoom", + "BitHaven", + "SynapseWorks", + "VoltEdge", + "Elevoria", + "Bridgent", + "Verniq", + "Corevia", + "Stratigen", + "Lunova Studio", + "Pixelora", + "MuseMind", + "BrightNest", + "Auralis", + "VerdaFlow", + "BloomShift", + "PureTrek", + "EcoVerse", + "ReLeaf Labs", + ] + + return companyNames[Math.floor(Math.random() * companyNames.length)] + }, + }, + // Addresses { key: "$randomCity",