Open this example in the interactive library
Source code
import * as util from "node:util";
console.log((await import("node:path")).matchesGlob("src/app.ts", "src/*.ts"));
Sample output
true

Open this example in the interactive library
import * as util from "node:util";
console.log((await import("node:path")).matchesGlob("src/app.ts", "src/*.ts"));
true