8000 Feature request: url pattern utils · Issue #210 · mout/mout · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature request: url pattern utils #210
Open
@mokkabonna

Description

@mokkabonna

utils that helps you work with url patterns: /articles/:id

Basically a subset of https://www.npmjs.com/package/url-pattern we can add new methods as needed.

pattern('/articles/:id').match('/articles/123') => {id: '123'}
pattern('/articles/:id').match('/other-url/123') => null

If this is wanted in the library, let me know and I will create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0