connect-breadcrumb
breadcrumb middleware for express and connect
install
npm install --save connect-breadcrumb
usage
var express = ;var breadcrumb = ; var app = ; // instantiate with default options: same as `app.use(breadcrumb());`app; app;
options
the following optional options can be provided as {Object} (see usage above).
- home {String}: name for the home link
- endingSlash {Boolean}: true, if the url elements should contain the ending slash '/'
- beautify {Function}: beautify function
- resAttribute {String}: attribute name
res[resAttribute]
andres.locals[resAttribute]
license
MIT
author
Andi Neck | @andineck | andi.neck@intesso.com | intesso