Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
Require a class/variable for other files

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!