Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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 16 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.