About 769,000 results
Open links in new tab
  1. How To Create Modules in NodeJS? - GeeksforGeeks

    Feb 19, 2025 · To create modules in NodeJS, write functions, objects, or classes in a separate file and use module.exports to export them. Import these modules in other files using the require () …

  2. Node.js Modules - W3Schools

    Create Your Own Modules. You can create your own modules, and easily include them in your applications. The following example creates a module that returns a date and time object:

  3. How To Create a Node.js Module - DigitalOcean

    Dec 3, 2019 · In this tutorial, you will create a Node.js module that suggests what color web developers should use in their designs. You will develop the module by storing the colors as …

  4. Creating Node.js modules | npm Docs

    Node.js modules are a type of package that can be published to npm. name: The name of your module. version: The initial module version. We recommend following semantic versioning …

  5. node.js - How Do I create a NodeJS Module? - Stack Overflow

    Mar 9, 2016 · Let’s see an example for DI modules using the factory pattern: class Car { constructor (options) { this.engine = options.engine } start { this.engine.start() } } function …

  6. Node.js NPM Tutorial: How to Create, Extend, Publish modules

    Nov 21, 2024 · In this NPM tutorial, you will learn What is a Node js module?, How to Create, Extend and Publish NPM Package in NodeJS with Examples.

  7. Creating and using Custom Modules - AlmaBetter

    Jun 22, 2023 · To create a custom module, you need to define the functions, classes, or objects that the module should contain and then export them for use in other parts of your application. …

  8. Nodejs Modules: Building Reusable Code - NodeJS Tutor

    Jan 25, 2023 · We’ve seen how Node.js modules may be used to create reusable code in this post. We’ve gone through how to make a module, export and import functionality from a …

  9. How to Create a Node.js Module: A Comprehensive Guide for …

    Dec 27, 2023 · We‘ll cover what modules are, why they matter, work through practical examples, tackle architecture best practices, and address common issues that arise. The goal is to …

  10. Creating a Module in Node.js - gyata.ai

    May 10, 2024 · Creating a custom module in Node.js is a straightforward process. Let's create a simple module that performs arithmetic operations. First, create a new JavaScript file named …

  11. Some results have been removed
Refresh