Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@optimizely/nuclear-router

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@optimizely/nuclear-router

NuclearJS Router

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

NuclearJS Router

API

Router

new Router( opts : Object )

Instatiates a new Router

Router#go( location : String ) : void
Router#registerRoutes( routes : Route[] ) : void
Router#registerCatchallPath( path : String ) : void
Router#getLocation() : String
Router#replace( location : String )
Router#windowNavigate( location : String )
Router#reset()

Type: Route

match : String|RegExp
handle : Function[]

TODO

  • Deprecate the hashbang use cases - we dont need this and it adds complexity
  • Deprecate the basepath option and just assume the basepath is /
  • Add no-op functionality to next() calls that happen async after Router.go is called again

Causes a real page navigation by using window.location

Keywords

FAQs

Package last updated on 04 May 2020

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc