Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6896639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:04:08+00:00 2026-05-27T07:04:08+00:00

I am working on a CMS system for Node.js, I have a quick question

  • 0

I am working on a CMS system for Node.js, I have a quick question for those Node.js Pro’s

I am creating modules and requiring modules within those modules, but if I have already included this module in the parent module, can I access those required modules?

For Example:

main.js
    var fs = require('fs');
    var sc = require('second.js');


second.js
    var fs = require('fs'); // Is there any way to use the parent modules fs object?

It just seems I am including the same modules in some of my sub modules and rather not do that if possible.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:04:09+00:00Added an answer on May 27, 2026 at 7:04 am

    It shouldn’t matter, since Node caches modules when they’re first included (i.e. the side-effects of requiring a module won’t be executed a second time). You can force this cache to be cleared (and thus re-execute said side-effects) by tampering with require.cache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a CMS system tries to support multilingual natively. I have
I am working within the confines of a php based CMS like system, which
I am working with a CMS system, and using a kind of smartform am
I am working with a CMS like system, phpBMS, which defines a certain way
I am working in the confines of a CMS system, which defines certain fields
I am working on a CMS system for my business, and need to be
I am trying to get django cms working with pinax but for some reason
I am currently working on implementing a CMS for a website. I have very
I am working on CMS system using smarty. The one cms system could support
I'm a student working on a module for moodle cms (course management system) of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.