bespoke-history

0.2.3 • Public • Published

bespoke-history

Bespoke.js window.history based URL router

Works in similar way as bespoke-hash but uses window.history instead

Usage

var history = require('bespoke-history');
bespoke.from(selector, [
  history()
]);
 

By default it will route urls against /, but you can customize root path:

bespoke.from(selector, [
  history('/my-custom-root/')
]);
 

Installation

npm

In your presentation path:

$ npm install bespoke-history

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    2
    • latest

Version History

Package Sidebar

Install

npm i bespoke-history

Weekly Downloads

2

Version

0.2.3

License

MIT

Last publish

Collaborators

  • medikoo