1.0.0 • Published 5 years ago
@jswork/next-router-path v1.0.0
next-router-path
Router path template for next.
installation
npm install -S @jswork/next-router-path
usage
import '@jswork/next-router-path';
nx.routerPath('/user/:id', { id: 123 });
// result: /user/123
resources
- https://github.com/ThijsTyZ/router-path/blob/master/src/createPath.ts
- https://github.com/lukeed/regexparam
- https://github.com/pillarjs/path-to-regexp
license
Code released under the MIT license.
1.0.0
5 years ago