gextech / promise-routerjs

Extends promise-polyfill for minimal use with router.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository mirrors the CommonJS version of router.js and all its dependencies within.

Also exposes globally a Promise implementation to work with the router.js

You can install it as NPM module and then using Browserify bring it out to the window.

$ npm install promise-routerjs
$ browserify main.js --no-detect-globals > router.js

main.js

window.Router = require('promise-routerjs')['default'];

This repository is only experimental.

About

Extends promise-polyfill for minimal use with router.js


Languages

Language:JavaScript 54.8%Language:Shell 45.2%