Skip to content

Glossary: Node.js Basics

glob

Also written: glob pattern

A function in `node:fs/promises` that finds files whose names match a pattern, where `*` matches any run of characters. `glob("data/*.json")` finds every JSON file in `data`.

Where the book teaches it

Related terms

node:fs/promises