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.

Using Node.js modules in HTML

I have the following Node.js project (which is a Minimal Working Example of my problem): module1.js: module.exports = …

javascript node.js require smooth browserify
Namespaces in node.js with require

I am playing around and learning about vows with a personal project. This is a small client side library, with …

node.js require vows
RequireJS: Difference between "requirejs" and "require" functions

I am using requireJS 2.x. I found out that some tutorials (and the official docs) sometimes use requirejs.config({ [...] }); requirejs(["…

javascript requirejs require
How to override a parent file in a child Wordpress theme when parent file is being required in functions.php

I'm rather new to designing and coding Wordpress themes and have recently started a child theme based on the Sydney …

php wordpress wordpress-theming parent-child require
Override the require function

Is it possible to override the global require function, affecting it at process level? From what I know, the require …

javascript node.js require
Resolving modules using require.js and Java/Rhino

I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino. I'm able to load …

java javascript require requirejs rhino
Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)

When I run: php composer.phar require kartik-v/yii2-widgets "*" I get the following output (using the -vvv verbose flag): …

installation composer-php yii2 require ziparchive
ReferenceError: require is not defined in MongoDB shell

I try to connect MongoDB from Mongo client on windows command (Window 8.1). When I use require() in javascript, I have …

mongodb shell require node-mongodb-native
RAILS_ROOT require?

I'm trying to access the RAILS_ROOT constant in a file residing in the /lib directory, but I'm not able …

ruby-on-rails ruby directory-structure constants require
Best practice for structuring libraries to be required in node.js

I have several utility libraries which contain helper functions and I want to load them in order they can be …

node.js design-patterns require