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

std/node/path.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@0.36.0/node/path.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

GlobrexResult

Converted object with string, segments and RegExp object