Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/path/globrex.ts>globrex

A modern runtime for JavaScript and TypeScript.
Go to Latest
function globrex
import { globrex } from "https://deno.land/x/deno@v0.35.0/std/path/globrex.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