npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

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

install

npm i bespoke-history

Downloadsweekly downloads

14

version

0.2.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability