
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
pull-http-router
Advanced tools
Minimal express-like router for pull-streams.
const pl = require('pull-level')
const summary = require('server-summary')
const toPull = require('stream-to-pull-stream')
const http = require('http')
var router = new PullHttpRouter()
router.post('/api/messages', pl.write(db), setStatus(200))
router.get('/api/messages', [
pull.map(function readDB (request) {
return pull(
pl.read(db, {min: request.query.offset}),
offsetLimit(null, request.query.limit)
)
}),
pull.flatten(),
setHeaders,
setStatus(200)
])
var server = http.createServer(function (req, res) {
pull(
parseHeaders,
parseQueryStrings,
router.route(),
toPull(res)
)
})
server.listen(1337, summary(server))
Usage: router = new PullHttpRouter(opts)
Create a new PullHttpRouter.
Accepts an options object with the following optional keys:
Usage: router.route(opts)
Create a pull-stream which expects a request object, and returns a readable stream.
Usage: router.get(path, [streams...])
Accepts a path to match on, and a stream to stream to. If multiple pull-streams are provided they will be linked together as if they were passed to pull-stream core's pull()
$ npm install pull-http-router
FAQs
Minimal express-like router for pull-streams
The npm package pull-http-router receives a total of 1 weekly downloads. As such, pull-http-router popularity was classified as not popular.
We found that pull-http-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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.