summaryrefslogtreecommitdiff
path: root/std/path/README.md
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-05-17 19:24:39 +0200
committerGitHub <noreply@github.com>2020-05-17 19:24:39 +0200
commit36fde75d779078118af3b2b6c078bcbfb47b1a0f (patch)
treec3cef9095b5c4ef762edc535be28d4e112928db4 /std/path/README.md
parenteddb916883901385233bea24313e2920fcac5388 (diff)
Miscellaneous documentation and spelling improvements (#5527)
* Extended/updated documentation on code editor setup and plugins. * Moved documentation to the right file. * Fixed spelling errors in documentation and code. * Updated broken links. Co-authored-by: 迷渡 <justjavac@gmail.com> Co-authored-by: AlfieriChou <alfierichou@gmail.com> Co-authored-by: Anil Seervi <anil13112000@gmail.com Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com> Co-authored-by: József Sallai <jozsef@sallai.me> Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de> Co-authored-by: Tommy May <tommymay37@gmail.com> Co-authored-by: Turbinya <wownucleos@gmail.com> Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
Diffstat (limited to 'std/path/README.md')
-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
+```