1.0.2 • Published 4 years ago
@feizheng/next-path-match v1.0.2
next-path-match
A wrapper for path-to-regexp.
installation
npm install -S @feizheng/next-path-match
usage
import '@feizheng/next-path-match';
const res = nx.pathMatch(
'/dashboard/self-analysis/:type/:id',
'/dashboard/self-analysis/folder/13'
);
// result:
{
type:'folder',
id:'13'
}