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

flux-router

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flux-router

Router for use with Flux and React

  • 0.0.1-alpha3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

flux-router Build Status

A router to use with Flux and React.

Getting Started

Get flux-router

Flux Router is available on both bower and npm. You should get it from wherever you're using flux from, or if you're using something like browserify to compile your code you should get it from npm, so you can require the module directly.

Bower

bower install flux-router

npm

npm install flux-router

Usage

If you're using flux-router from npm, you should require the module in first. If you're using it from bower, fluxRouter will be available in the global scope.

var fluxRouter = require('flux-router'); // only needed for npm

var router = new fluxRouter(Dispatcher);

You should instantiate Flux Router with your app's dispatcher, to avoid having more than one dispatcher per application.

Run Tests

If you wish to test Flux Router yourself, you will need to run

npm install

And if you don't have gulp installed, also run

npm install gulp -g

Once gulp is installed, you can then run

gulp test

Tests are executed in Chrome, using Karma and Jasmine.

Keywords

FAQs

Package last updated on 22 Feb 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc