
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
hydrajs-router-plugin
Advanced tools
Hydra.js plugin to execute the specified callback when the url changes.
Is a plugin to execute the specified callback when the url changes.
Install with Bower
bower install hydrajs-router-plugin
Install with Component
component install hydrajs-router-plugin
Install with NPM
npm install hydrajs-router-plugin
Insert in your html code:
<script type="text/javascript" src="hydra.js"></script
<script type="text/javascript" src="hydrajs-router-plugin.js"></script>
Insert in your code:
define(['hydrajs-router-plugin'], function () {
// code here.
});
The router looks for the id of the body and executes a callback if this id matches any of the added routes.
hydrajs-router-plugin extends Hydra.js library adding new methods.
This method adds a new route to execute when the url changes.
Hydra.router.add( sIdBody, fpCallback );
This methd adds a default callback to execute if there is no route assigned to the current id.
Hydra.router.setDefault( fpDefaultCallback );
hydrajs-router-plugin is licensed under MIT license. (see LICENSE file)
FAQs
Hydra.js plugin to execute the specified callback when the url changes.
The npm package hydrajs-router-plugin receives a total of 3 weekly downloads. As such, hydrajs-router-plugin popularity was classified as not popular.
We found that hydrajs-router-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.