Skip to content

Glossary: Node.js Basics

path module

Also written: node:path, path.join, path.resolve, basename, extname, dirname

A built-in module that builds and takes apart file paths correctly on every operating system. `join` glues parts together and `resolve` gives an absolute path.

Where the book teaches it

Related terms

Absolute path / relative path