New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

router5.transition-path

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router5.transition-path

Router5 transition path helper function

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
249
decreased by-21.2%
Maintainers
1
Weekly downloads
 
Created
Source

transition-path

Router5 helper to determine a transition path. Used by router5, router5-listeners and redux-router5.

Installation

npm install --save router5.transition-path

Usage

This module exports a transitionPath function which can compute the transition path between two router5 states: segments to deactivate, segments to activate and intersection node between the two.

It also exports (as named exports) a nameToIDs function for transforming a route name to a list of segments.

import transitionPath from 'router5.transition-path';

const { toActivate, toDeactivate, intersection } = transitionPath(toState, fromState);

ES5

var transitionPath = require('router5.transition-path').default;

See the tests for examples.

Keywords

FAQs

Package last updated on 22 Sep 2016

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