1.0.0 • Published 9 years ago
breadcrumble v1.0.0
breadcrumble
A utility for building a list of breadcrumbs from chopped URL's.
Usage
npm install breadcrumble
var breadcrumble = require('breadcrumble');
breadcrumble.config = require('./breadcrumbs.json');
var crumbs = breadcrumble.match('/users/33/profile');
// [ 'Users', 'ID (33)', 'Profile' ]
On the server
var breadcrumble = require('breadcrumble');
In the browser
The minified build does not print console warnings when used improperly.
var breadcrumble = require('breadcrumble/dist/breadcrumble.min.js');
Dependencies
Breadcrumble depends on underscore@1.8.
Contributing
- Fork and make your changes.
- Make sure you run the tests and the linter.
- Open a pull request.
License
- MIT
1.0.0
9 years ago