Skip to main content
Module

x/typeorm/src/util/fs.ts>expandGlob

Forked from https://github.com/typeorm/typeorm
Latest
function expandGlob
import { expandGlob } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/util/fs.ts";

Expand the glob string from the specified root directory and yield each result as a WalkEntry object.

See globToRegExp() for details on supported syntax.

Example:

 for await (const file of expandGlob("**\/*.ts")) {
   console.log(file);
 }

Parameters

glob: string
optional
unnamed 1: ExpandGlobOptions = [UNSUPPORTED]

Returns

AsyncIterableIterator<WalkEntry>