path-dispatcher
Static url dispatcher
npm i path-dispatcher
Usage
; const dispatcher = ; dispatcher; dispatcher;
API
create dispatcher
route
dispatcher
@param String@param Function|Function funcOrFuncs
dispatch
dispatcher
@param String currentPathName = locationpathname || ''
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
License
© sugarshin