1// Use require.main.require to get a module from the root folder.
2const Globals = require.main.require("./globals.js");
3const YourCustomModule = require("./yourmodule.js");
4
5console.log(YourCustomModule.message);
6
7// --- yourmodule.js ---
8module.exports = {
9 message: "Hello World!",
10 otherData: "Hello Grepper!"
11};