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.

Load Lua-files by relative path

If I have a file structure like this: ./main.lua ./mylib/mylib.lua ./mylib/mylib-utils.lua ./mylib/mylib-helpers.lua ./mylib/…

lua require coronasdk
How to require a ruby file from another directory

I am trying to require a rake file that I have created inside another file I have. These two files …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.2 require
Node-style require for in-browser javascript?

Are there any libraries for in-browser javascript that provide the same flexibility/modularity/ease of use as Node's require? To …

javascript load require scoping
PHP require file from top directory

I have several subdomains contained in their own directory above my root site, and an assets folder in my root …

php include directory require
In Lua how do you import modules?

Do you use require "name" or local name = require "name" Also, do you explicitly declare system modules as local variables? …

import module lua declaration require
phpMyAdmin - Error You should upgrade to MySQL 5.5.0 or later

I installed phpMyAdmin-4.2.9.1-english on a Centos 6.5 platform. 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux …

mysql phpmyadmin upgrade require
Node.js - check if module is installed without actually requiring it

I need to check whether "mocha" is installed, before running it. I came up with the following code: try { var …

node.js module require
How to include nodejs modules in html files?

First of all I am new to nodejs and secondly below is my question. How to include nodejs net module …

javascript node.js require
What are the paths that "require" looks up by default?

In Ruby, I have been told that when doing require "some_file" Ruby will look for the file in certain …

ruby require
Detect if called through require or directly by command line

How can I detect whether my Node.JS file was called using SH:node path-to-file or JS:require('path-to-file')? This …

node.js require