Skip to content

Commit 83bbf70

Browse files
committed
chore: add Deno section to readme
1 parent 04d7131 commit 83bbf70

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,21 @@ The values to be injected. The keys within `values` must match the `pattern`'s s
211211
> **Note:** To replace a wildcard segment (eg, `/*`), define a `values.wild` key.
212212
213213

214+
## Deno
215+
216+
As of version `1.3.0`, you may use `regexparam` with Deno. These options are all valid:
217+
218+
```ts
219+
// The official Deno registry:
220+
import regexparam from 'https://deno.land/x/regexparam/src/index.js';
221+
// Third-party CDNs with ESM support:
222+
import regexparam from 'https://cdn.skypack.dev/regexparam';
223+
import regexparam from 'https://esm.sh/regexparam';
224+
```
225+
226+
> **Note:** All registries support versioned URLs, if desired. The above examples always resolve to the latest published version.
227+
228+
214229
## Related
215230

216231
- [trouter](https://github.com/lukeed/trouter) - A server-side HTTP router that extends from this module.

0 commit comments

Comments
 (0)