summaryrefslogtreecommitdiff
path: root/std/path
diff options
context:
space:
mode:
Diffstat (limited to 'std/path')
-rw-r--r--std/path/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/std/path/README.md b/std/path/README.md
index a1f3f425d..9a9361f87 100644
--- a/std/path/README.md
+++ b/std/path/README.md
@@ -5,3 +5,18 @@ Usage:
```ts
import * as path from "https://deno.land/std/path/mod.ts";
```
+
+### globToRegExp
+
+Generate a regex based on glob pattern and options This was meant to be using
+the the `fs.walk` function but can be used anywhere else.
+
+```ts
+import { globToRegExp } from "https://deno.land/std/path/glob.ts";
+
+globToRegExp("foo/**/*.json", {
+ flags: "g",
+ extended: true,
+ globstar: true,
+}); // returns the regex to find all .json files in the folder foo
+```