UNPKG

path-parser

Version:

A small utility to parse, match and generate paths

10 lines (9 loc) 219 B
export interface Token { type: string; match: string; val: any; otherVal: any; regex?: RegExp; } declare const tokenise: (str: string, tokens?: Token[]) => Token[]; export default tokenise;