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.
react-router-dom-intl
Advanced tools
Package intent to get localized Routes.
Use Link
and Switch
components from this package and let the magic happen.
In this early version only
<Link to={String} />
are supported. Not theObject{pathname}
syntax. This will come in v1.
<IntlProvider
locale="fr"
defaultLocale="fr"
messages={{
'/route1': '/chemin1', // Localize your path here
}}>
<BrowserRouter>
<ul>
<li>
<Link to="/">Link to /</Link>
</li>
<li>
<Link to="/route1">Link to /route1 see the url link</Link>
</li>
<li>
<Link to="/route2">Link to /route2</Link>
</li>
</ul>
<Switch>
<Route exact path="/"><div>base route</div></Route>
<Route path="/route1"><div>route 1</div></Route>{/* Will be translated to '/chemin1' according to "messages" */}
<Route path="/route2"><div>route 2</div></Route>{/* Stay provided path since it's not provided */}
</Switch>
</BrowserRouter>
</IntlProvider>
See src/index.js for sample and src/lib for logic or npm run start
this project locally for a demo.
FAQs
Package intent to get localized Routes.
The npm package react-router-dom-intl receives a total of 1 weekly downloads. As such, react-router-dom-intl popularity was classified as not popular.
We found that react-router-dom-intl 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.
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.