Require

suggest change

Versions

[{“Name”:“v8.1.3”,“GroupName”:null}]

Introduction

This documentation focuses on explaining the uses and of the require() statement that NodeJS includes in their language.

Require is an import of certain files or packages used with NodeJS’s modules. It is used to improve code structure and uses. require() is used on files that are installed locally, with a direct route from the file that is require’ing.

Syntax

Remarks

Using require() allows code to be structured in a way similar to Java’s use of classes and public methods. If a function is .export’ed, it can be require’ed in another file to be used. If a file is not .export’ed, it cannot be used in another file.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Require:
* Require

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require