Top "Require" questions

In interpreted languages like Lua, PHP and Ruby, "require" is a statement that tells the interpreter to include a certain source-file at that position where the "require" statement has been placed.

How to require a file in node.js and pass an argument in the request method, but not to the module?

I have a module.js that must be loaded; In order to work needs objectX; How do I pass the …

node.js require
React Native: require() with Dynamic String?

I have read several posts about issues that people are having with React Native and the require() function when trying …

javascript reactjs react-native ecmascript-6 require
How are require, require_dependency and constants reloading related in Rails?

How are require and require_dependency different? How can require_dependency automatically reload classes in development but require can't ? I …

ruby-on-rails require
Browserify with require('fs')

I was trying to use browserify on a file that uses the fs object. When I browserify it, the call …

html node.js require html5-filesystem browserify
webpack dynamic module loader by require

OK, i have searched high and low but cannot reliably deterrmine if this is or is not possible with webpack. …

javascript node.js webpack require webpack-2
In Perl, what is the difference between use and require for loading a module?

What is the difference between doing use My::Module and require My::Module?

perl module require
require 'rubygems'

I have seen many samples of Ruby code with this line (for example, http://www.sinatrarb.com/). What is purpose …

ruby rubygems require
PHP DOMDocument missing

I am getting an odd error when running $dom = new DOMDocument("1.0", "utf-8");: Warning: require_once(classes/DOMDocument.class.php) [function.…

php domdocument require
"Error: Cannot find module 'less'" Node.js module loading preference/order/cache?

Here's the situation… So I've created a Node.js module that acts as an interface to some Node.js template …

node.js module require commonjs
Load node.js module from string in memory

How would I require() a file if I had the file's contents as a string in memory, without writing it …

string node.js file require