I have this constructer class that creates a new Client, I would like to require this into other files so I am able to utilize the properties and methods. The issue is that the constructer is static so I cannot call exports or module.exports to export to the class.
const fc = new fnbr.Client({
auth: { deviceAuth: JSON.parse(fs.readFileSync('./deviceAuth.json', 'utf8')),}
})
If I attempt to use module.exports, I receive a circular dependency error.
Any ideas?