Create-variable lets you create a global variable when called with a name and value. The variable that it creates will be accessible across multiple JS files without requiring and exporting.
const { createGlobalVariable, GlobalVariable } = require('create-variable')
createGlobalVariable('test', 'hi')
console.log(test) // Output: hi
new GlobalVariable('test2', 'bruh')
console.log(test2) // Output: bruh