named-router-url-generator
v0.0.5
Published
Addition named router. URL generator for express route, template engine and javascript
Downloads
3
Maintainers
Readme
Expressjs Named Router & URL Generator
A lightweight express-js router wrapper with additional named router and URL generator.
If you're looking for Expressjs Named Router and URL Generator, here's your
Note: This is a wrapper - not a replacement
Features
- All features of express router (http://expressjs.com/4x/api.html#router)
- Naming router
- URL generation
- Router param matching conditional
- Nested group (replace to router mouting by using app.use('/path', router))
- Simple, easy to use, just need to change 2 lines of code to get this.
- Easy to switch back to express router (if you don't like)
Installation
npm install named-router-url-generator --save
Requirements
- Epxressjs 4.x