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.

Node.js "require" function and parameters

When I do: lib = require('lib.js')(app) is app actually geting passed in? in lib.js: exports = module.exports = …

javascript node.js require
How to do multiple imports in Python?

In Ruby, instead of repeating the "require" (the "import" in Python) word lots of times, I do %w{lib1 lib2 …

python import iterator require
NodeJs require('./file.js') issues

I am having issues including files to execute in my NodeJs project. I have two files in the same directory: …

node.js require
Check if an include (or require) exists

How do you check if an include / require_once exists before you call it, I tried putting it in an …

php include exists require
Webpack and external libraries

I’m trying out webpack (http://webpack.github.io/) and it looks really nice, however I’m kind of stuck …

javascript require commonjs webpack
node.js require cannot find custom module

Here is the project structure: / app.js package.json /node_modules /app config.json /frontend assets and html tpls /modules …

javascript macos node.js require
Conditional build based on environment using Webpack

I have some things for development - e.g mocks which I would like to not bloat my distributed build …

javascript build conditional require webpack
How to create include files in Lua language?

I want to create a header file in Lua (header.lua), then execute the require function to load it. How …

header lua require
how to require_once in codeigniter

I am trying to extend a library in codeigniter. The only way to do so seems to include the original …

php codeigniter require
How can I use jQuery in Greasemonkey scripts in Google Chrome?

As some of you may know, Google Chrome has put some severe limitation on Greasemonkey scripts. Chromium does not support @…

jquery google-chrome greasemonkey require userscripts