How to save an array that can be used all over the repository like a db?

I am creating a WhatsApp bot and I am gonna create a feature that disables commands.

So I want to save/export an array of elements without losing any data.

function disableCommand(cmd) {
 const disabledCommands = [];
 disabledCommands.push(cmd);
}

I know to create a function like above but I actually don’t want to create a function, instead I wanna push command in disabledCommands array which can be used by exporting or some other way that can be used all over the repository ( Like a db ).

QUESTION CODE TYPE – NODEJS

Can anyone help?