Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/path/mod.ts>globrex

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function globrex
Re-export
import { globrex } from "https://deno.land/std@v0.39.0/path/mod.ts";

Convert any glob pattern to a JavaScript Regexp object

Parameters

glob: string

Glob pattern to convert

optional
unnamed 1: GlobrexOptions = [UNSUPPORTED]

Configuration object

Returns

Converted object with string, segments and RegExp object