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.
@elderjs/plugin-random
Advanced tools
Easily preview a random page of a route by visiting a single url. This plugin should be used exclusively for development.
Easily preview a random page of a route by visiting a single url. This plugin should be used exclusively for development.
When not running in process.env.NODE_ENV === 'production'
this plugin does 2 things:
/random/
route that lists each of your routes linking to /random/routeName/
./random/routeName/
and randomly serves a page for that route.Say that you have a route named blog
that has 1000 entries. With this plugin you could visit /random/blog/
and randomly design against any blog page instead of just one as most designers would do.
This is a simplistic example, but when building major sites with 10,000s of pages you'll often encounter scenarios where pages of the same route differ dramatically based on business logic.
By using this plugin, you can design and debug against random pages of a route without having to change the URL.
At ElderGuide.com we've found this is especially useful when working on a unified design across a route that can vary dramatically.
Having found this useful, it has now become a core part of our development process across all projects.
npm install --save @elderjs/plugin-random
plugins: {
'@elderjs/plugin-random': {},
}
@elderjs/plugin-browser-reload
remember that /random/routeName/
will generate a new page each refresh. This can be annoying when working on CSS issues or thing that require stateful experiences on the front end.request.permalink
inside your Layout.svelte
or RouteName.svelte
files.FAQs
Easily preview a random page of a route by visiting a single url. This plugin should be used exclusively for development.
The npm package @elderjs/plugin-random receives a total of 3 weekly downloads. As such, @elderjs/plugin-random popularity was classified as not popular.
We found that @elderjs/plugin-random demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.