About 890,000 results
Open links in new tab
  1. Modules: CommonJS modules | Node.js v23.11.0 Documentation

    CommonJS modules are the original way to package JavaScript code for Node.js. Node.js also supports the ECMAScript modules standard used by browsers and other JavaScript runtimes. In Node.js, each file is treated as a separate module.

  2. Node.js Modules - W3Schools

    What is a Module in Node.js? Consider modules to be the same as JavaScript libraries. A set of functions you want to include in your application. Node.js has a set of built-in modules which you can use without any further installation. Look at our Built-in Modules Reference for a …

  3. Modules: node:module API | Node.js v23.11.0 Documentation

    Provides general utility methods when interacting with instances of Module, the module variable often seen in CommonJS modules. Accessed via import 'node:module' or require ('node:module'). The list now also contains prefix-only modules. A list of …

  4. NodeJS Modules - GeeksforGeeks

    Feb 21, 2025 · What are Modules in NodeJS? A NodeJS module is a separate file containing code that can be imported and reused in other parts of the application. It helps break down large applications into smaller, manageable sections, each focused on a specific functionality. By using modules, developers can keep code organized, reusable, and maintainable.

  5. What are Modules in Node.js - GeeksforGeeks

    Jan 18, 2023 · In NodeJS, modules are encapsulated units of code that can be reused across different parts of an application. Modules help organize code into smaller, manageable pieces, promote code reusability, and facilitate better maintainability and scalability of NodeJS applications. Types of Modules:Core Mod

  6. Modules: Packages | Node.js v23.11.0 Documentation

    Introduce "exports"package.json field as a more powerful alternative to the classic "main" field. Add support for ES modules using .js file extension via package.json"type" field. A package is a folder tree described by a package.json file.

  7. An Essential Guide to Node.js Modules - JavaScript Tutorial

    In Node.js, a module is a reusable piece of code placed in a .js file. Node.js supports two module systems: ES modules (Node 14.0.0 or later). This tutorial focuses on the CommonJS modules. In a module, when you define variables, functions, and …

  8. What Are Node Modules and How Do You Use Them?

    Dec 6, 2022 · Every Node.js application has modules. These modules form part of the building blocks of the application. They help developers work faster and write more structured code. In this tutorial, you will learn what node modules are. You will also learn about the three types of …

  9. Node.js Modules - TutorialsTeacher.com

    Module in Node.js is a simple or complex functionality organized in single or multiple JavaScript files which can be reused throughout the Node.js application. Each module in Node.js has its own context, so it cannot interfere with other modules or pollute global scope.

  10. Everything you should know about ‘module’ & ‘require’ in Node.js

    Dec 24, 2024 · Modules are one of the critical ingredients that make Node.js so versatile, scalable and powerful. This comprehensive 2800+ word guide will provide expert-level depth on understanding and leveraging modules in Node.js.

  11. Some results have been removed
Refresh