Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@vaadin/router
Advanced tools
Small and powerful client-side router for Web Components. Framework-agnostic.
Vaadin Router is a small and powerful client-side router JS library. It uses the widely adopted express.js syntax for routes (/users/:id
) to map URLs to Web Component views. All features one might expect from a modern router are supported: async route resolution, animated transitions, navigation guards, redirects, and more. It is framework-agnostic and works equally well with all Web Components regardless of how they are created (Polymer / SkateJS / Stencil / Angular / Vue / etc).
Vaadin Router is a good fit for developers that do not want to go all-in with one framework, and prefer to have freedom in picking the components that work best for their specific needs.
npm install --save @vaadin/router
import {Router} from '@vaadin/router';
const router = new Router(document.getElementById('outlet'));
router.setRoutes([
{path: '/', component: 'x-home-view'},
{path: '/users', component: 'x-user-list'}
]);
A specific version of Vaadin Router supports the same browsers as the Vaadin platform major version which includes that version of Vaadin Router. See Vaadin platform release notes for details on included Vaadin Router version and supported technologies. The Supported Technologies section is typically listed in the release notes of the first publicly available release of a Vaadin platform major version (for example Vaadin 18.0.1 since 18.0.0 was skipped).
Evergreen versions of the following browsers
Built-in browsers in the following mobile operating systems:
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.
Fork the vaadin-router
repository and clone it locally.
Make sure you have npm installed.
When in the vaadin-router
directory, run npm install
and then npm run install:dependencies
to install dependencies.
Run npm start
, and open http://127.0.0.1:8000/components/vaadin-router in your browser to see the component API documentation.
You can also open demo or in-browser tests by adding demo or test to the URL, for example:
vaadin-router
directory, run npm test
We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running npm run lint
, which will automatically lint all .js
files as well as JavaScript snippets inside .html
files.
npm run lint
npm test
Apache License 2.0
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
FAQs
Small and powerful client-side router for Web Components. Framework-agnostic.
The npm package @vaadin/router receives a total of 33,279 weekly downloads. As such, @vaadin/router popularity was classified as popular.
We found that @vaadin/router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.