
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
preact-router-minimal
Advanced tools
> This was a fun little project to tinker with but I have no plans to maintain it. Please user [preact-router](https://github.com/developit/preact-router) instead.
This was a fun little project to tinker with but I have no plans to maintain it. Please user preact-router instead.
A tiny ~650b router modeled after (and just over 1/3 the size of) preact-router.
I'm obsessive about download size. While preact-router
is amazing, it does more than I, and likely many others, need.
If all you want is declarative routing for preact
with few bells and whistles, this is your stop.
preact-router
preact-router-minimal
on a given page.path
only handles exact matches and colon wildcards such as /entries/:id/comments
.Match
, Link
, and Redirect
are not implemented. (As a note, preact-router
is ~1.8k without Match
and Link
.)Other than that, use preact-router-minimal
like you would preact-router
.
preact-router
Router
and route
native
linksimport { h, Component } from 'preact';
import { Router, route } from 'preact-router-minimal';
export default class App extends Component {
render(props, state) {
return (
<Router onChange={onChange}>
<Login path="/" />
<Posts path="/posts" />
<Post path="/post/:id" />
</Router>
);
}
}
FAQs
> This was a fun little project to tinker with but I have no plans to maintain it. Please user [preact-router](https://github.com/developit/preact-router) instead.
We found that preact-router-minimal 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.