1.0.0 • Published 9 years ago

breadcrumble v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

breadcrumble

Build Status

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

  1. Fork and make your changes.
  2. Make sure you run the tests and the linter.
  3. Open a pull request.

License

  • MIT