Socket
Socket
Sign inDemoInstall

riot-route

Package Overview
Dependencies
1
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

riot-route


Version published
Weekly downloads
3.4K
decreased by-45.94%
Maintainers
3
Install size
92.6 kB
Created
Weekly downloads
 

Readme

Source

Build Status Code Quality NPM version NPM downloads MIT License Coverage Status

Riot Router

Router is a generic tool to take care of the URL and the back button. It's the smallest implementation you can find and it works on all browsers including IE9. It can do the following:

  1. Change the hash part of the URL
  2. Notify when the hash changes
  3. Study the current hash

You can place routing logic everywhere; in custom tags or non-UI modules. Some application frameworks make the router a central element that dispatches work to the other pieces of the application. Some take a milder approach where URL events are like keyboard events, not affecting the overall architecture.

Every browser application needs routing since there is always an URL in the location bar.

Documentation

Installation

npm

$ npm install --save riot-route

Bower

$ bower install --save riot-route

Demos

Development

  • $ npm install to setup
  • $ make build to build it once
  • $ make watch to watch and build it continuously
  • $ npm test to test

Keywords

FAQs

Last updated on 25 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc