Retrieves the files matching the specified pattern.
When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { glob } from 'node:fs';
glob('*.js', (err, matches) => {
if (err) throw err;
console.log(matches);
});