Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dnt/lib/mod.deps.ts>glob.expandGlobSync

Deno to npm package build tool.
Go to Latest
function glob.expandGlobSync
import { glob } from "https://deno.land/x/dnt@0.29.1/lib/mod.deps.ts";
const { expandGlobSync } = glob;

Synchronous version of expandGlob().

Example:

     import { expandGlobSync } from "./expand_glob.ts";
     for (const file of expandGlobSync("**\/*.ts")) {
       console.log(file);
     }

Parameters

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

Returns

IterableIterator<WalkEntry>