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

  • Home
  • SEARCH
  • 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 8239453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:09:18+00:00 2026-06-07T20:09:18+00:00

{This has nothing to do with Twitter} Bit of an interesting question, interesting in

  • 0

{This has nothing to do with Twitter}

Bit of an interesting question, interesting in that its probably stupid and you can laugh but I will have at least an answer to this damn itch.

Currently I use

var Bootstrap = require('library/Bootstrap');
Bootstrap.run();

When what would be really great is if I could do something like this in the Bootstrap index.js

module.exports.Bootstrap = My_Bootstrap;

And call it willy nilly like this

require('library/Bootstrap');
Bootstrap.run();

Without having to declare another variable to my space, is there a way to do this or am I staring at a screen wondering, dreaming, getting lost, coming back and wasting time?

edit
So this is what I did in the end:

I created a single global object and am only adding important modules to it so they can be accessed and instantiated. This turned out to be an amazing answer and solution and really handy

  • 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-06-07T20:09:19+00:00Added an answer on June 7, 2026 at 8:09 pm

    Well you can just modify the global object. This is similar to window object on browsers. So you can write a wrapper for your module like the following:

    global.Bootstrap = My_Bootstrap
    

    The global object is shared between modules. Then you can just use with Bootstrap wherever you are.

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

Sidebar

Related Questions

Note: this question has nothing to do with Knockout.js, but it's about the selectedOptions
It seems that when a WPF application starts, nothing has focus. This is really
I feel like this is a common problem but nothing I've researched has worked
This task should be quite simple, but nothing I tried has worked. I'm just
Please note, that this has nothing to do with Operator Precedence.. () and ++
This code will always make my aspx page load twice. And this has nothing
Has this happened to anyone? Nothing has changed on my system, yet TFS no
XPath returns nothing if a child element has no text value. In this case,
Possible Duplicate: “Least Astonishment” in Python: The Mutable Default Argument Edit: This has nothing
I have a website where users can enter their Twitter Login information. This site

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.