
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
fluxible-plugin-routr
Advanced tools
Provides routing methods to your Fluxible application using routr.
var FluxibleApp = require('fluxible-app');
var routrPlugin = require('fluxible-plugin-routr');
var app = new FluxibleApp();
var pluginInstance = routrPlugin({
routes: {
user: {
path: '/user/:id',
method: 'get',
// flux-router-component uses this action when the route is matched
action: function (actionContext, payload, done) {
// ...
done();
}
}
}
});
app.plug(pluginInstance);
Provides full access to the routr instance. See routr docs for more information.
actionContext.routr.makePath(routeName, routeParams)
: Create a URL based on route name and paramsactionContext.routr.getRoute(path)
: Returns matched routeThe plugin also provides access to some internals and the options that were passed in.
pluginInstance.getRoutes(); // returns the full routes object passed to factory
This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.
FAQs
A plugin for fluxible applications to provide routing methods
The npm package fluxible-plugin-routr receives a total of 30 weekly downloads. As such, fluxible-plugin-routr popularity was classified as not popular.
We found that fluxible-plugin-routr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.