# path Module

*noun*

say it: **“path MOJ-ool”** **/pæθ ˈmɒdʒuːl/**

Node's built-in module for building and taking apart file paths so they work on every operating system.

## What does `path Module` do?

The `path` module joins and splits file paths correctly on every operating system.

```javascript
import path from 'node:path';
const file = path.join('data', 'recipes', 'pancakes.json');
```

## In a sentence

- “Use the **path module** instead of gluing folder names together with "/".”
- “**path module**'s join builds data/orders.json with the right slashes on Windows and Mac.”

Level: Apprentice · [More Node.js terms at this level](https://www.ask-codey.com/glossary?category=nodejs&level=2)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/path-module
