
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
A Simple hash based router which supports query strings
This is a port of the simple-hash-router in ES5 syntax and includes the ability to have query strings.
Your links looks like this:
<a href='#'>Index</a>
<a href='#about'>About</a>
<a href='#page/2'>Page 2</a>
You require the module.
var beeline = require('bee-line');
// or just include it in the head of the html
// Then you attach a your favorite listener to the `beeline`
beeline.register(function (page, params, query) {
console.log(page); // Name of the page
console.log(params); // Object with parameters
console.log(query); // object describing the query params eg: ?name=value&name2=val2 => {name:value, name2:val2}
// This is where you'd do your magic.
});
// Then you define your routes. They have to be a list because the order
// matters. beeline will trigger on the first matched route.
beeline.addRoutes([
{'/': 'index-page'},
{'about': 'about-page'},
{'page/:id': 'paginated-page'}
]);
// Lastly, you start it. When starting it, it will also trigger the approrpate
// route even though the URL did not change.
beeline.start();
In case you link to an undefined route, it will notify registered functions
with a not-found
page name.
MIT.
Original routing developed by Gorm Casper
FAQs
A simple hash based router which supports query strings
The npm package bee-line receives a total of 0 weekly downloads. As such, bee-line popularity was classified as not popular.
We found that bee-line 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.