summaryrefslogtreecommitdiff
path: root/std/path/README.md
blob: c1debfc31d92e6189021a05327b6134650d41db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Deno Path Manipulation Libraries

Usage:

```ts
import * as path from "https://deno.land/std@$STD_VERSION/path/mod.ts";
```

### globToRegExp

Generate a regex based on glob pattern and options This was meant to be using
the `fs.walk` function but can be used anywhere else.

```ts
import { globToRegExp } from "https://deno.land/std@$STD_VERSION/path/glob.ts";

globToRegExp("foo/**/*.json", {
  flags: "g",
  extended: true,
  globstar: true,
}); // returns the regex to find all .json files in the folder foo.
```