UNPKG

@nimpl/path-parser

Version:

Helper for next.js-styled pathname parsing (f.e. /(site)/docs/[key]) to get dynamic params

4 lines (3 loc) 114 B
export declare const parse: (pathname: string, rule: string) => { [key: string]: string | string[]; } | null;