mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-25 12:48:07 -08:00
Merge 26ae159967 into 88e5be6e4b
This commit is contained in:
@@ -73,7 +73,7 @@ ref(); // If you had previously unref()d a timer you can call ref() to explic
|
|||||||
* http://nodejs.org/api/modules.html
|
* http://nodejs.org/api/modules.html
|
||||||
* ******************************************************************************************* */
|
* ******************************************************************************************* */
|
||||||
|
|
||||||
|
// require() accepts a relative path of the given module w.r.t. the file you are importing it in.
|
||||||
var module = require('./module.js'); // Loads the module module.js in the same directory.
|
var module = require('./module.js'); // Loads the module module.js in the same directory.
|
||||||
module.require('./another_module.js'); // load another_module as if require() was called from the module itself.
|
module.require('./another_module.js'); // load another_module as if require() was called from the module itself.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user