Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
biggie-router
Advanced tools
Biggie-router is a high performance, extendable router for use in frameworks and applications. It draws inspiration from several popular open source frameworks and libraries, such as jQuery and Sinatra.
Biggie-router is released under MIT, in hope you find this software useful.
The fastest way to get started with biggie-router is to install it via npm.
$ npm install biggie-router
Otherwise git clone
, or download the repository and place the contents of the
lib
directory where needed.
Here are a few basic examples.
Hello world, that listens on port 8080:
var http = require('http')
var Router = require('biggie-router');
var server = http.createServer()
var router = new Router(server);
router.bind(function (request, response, next) {
next.sendBody(200, "Hello World!");
});
server.listen(8080);
Basic routing + chaining. Responds with hello world on root and /index.html
get requests.
Requests that fall through (don't match any conditions) get passed to the next route and are sent a 404.
var Router = require('biggie-router');
var router = new Router();
router.get('/').get('/index.html')
.bind(function (request, response, next) {
next.sendBody(200, "Hello World!");
});
router.bind(function (request, response, next) {
next.sendBody(404, 'Resource "' + request.url + '" not found.');
});
router.listen(8080);
Modules are functions that return a function, enabling you to do per-route
setup. No modules are supplied with biggie-router, however middleware use the
same pattern as connect (or express); so generic connect middleware should also
be compatible with biggie. The npm middleware
module is also compatible.
Usage is as follows:
var middleware = require('middleware');
router.get('/').bind(middleware.sendfile('public/'));
router.post('/users').bind(api('users', 'create'));
FAQs
A lightweight extensible HTTP router
The npm package biggie-router receives a total of 11 weekly downloads. As such, biggie-router popularity was classified as not popular.
We found that biggie-router 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.