A module is already scoped in node.js. It would be nice to have scoped require in the browser too, instead of just global import.<p>Splitting up a program, or module, into (more) modules does not make it simpler, rather contrary, it makes it more complex! Unless it&#x27;s a fully decoupled abstraction  reusable in other projects.<p>An example of require-ing within individual functions: A function to send notifications to e-mail or SMS ... It makes more sense to require the SMTP or SMS module in those functions, then somewhere else.