# बिल्ट-इन, थर्ड-पार्टी और लोकल मॉड्यूल — Node.js Fundamentals: Modules, Async और Servers

Source: https://www.skillbyai.com/hi/nodejs/node-module-types

> Built-in, third-party और local modules में अंतर करें, और core modules के लिए node: prefix उपयोग करें।

## मॉड्यूल के तीन प्रकार

**बिल्ट-इन** मॉड्यूल Node के साथ आते हैं (`fs`, `path`), **थर्ड-पार्टी** मॉड्यूल npm से आते हैं (`express`), और **लोकल** मॉड्यूल आपकी अपनी फ़ाइलें हैं (`./utils.js`)।

## पहचान करना

specifier बताता है कि Node कहाँ देखे: एक साधारण नाम, या एक relative पथ।

```javascript
import fs from "node:fs";        // built-in
import express from "express";   // third-party (node_modules)
import { add } from "./math.js"; // local file
```

**Quiz:** कौन-सा प्रीफ़िक्स स्पष्ट रूप से Node के बिल्ट-इन मॉड्यूल को दर्शाता है?

- [x] node:
- [ ] npm:
- [ ] ./
- [ ] pkg:

*Answer:* node:. `node:fs`, `node:path` आदि स्पष्ट कर देते हैं कि आपका मतलब बिल्ट-इन से है, किसी उसी नाम के पैकेज से नहीं।
