
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
scramjet-http-post
Advanced tools
A simple stateless http server that emits all posted objects as a stream
A simple HTTP server providing a stream of HTTP POST payloads in scramjet.
The module exposes the following methods:
scHTTP.body([scramjet, ]server)
- a stream of post contents sent to the given server.
Arguments:
server
- your HTTP serverCurrently suppotes POST content-types:
application/json
and text/json
application/form-data
Example
Grabs "votes" off a http server and pushes to command line.
const scramjet = require("scramjet");
const server = require("http").createServer().listen(6080);
const scHTTP = require("scramjet-http-post");
scHTTP.body(scramjet, server)
.filter((data) => (data && typeof data === "object" && !isNaN(+data.vote) && typeof data.for === "string"))
.map((data) => ({
contestant: data.for.substr(0, 1).toUpperCase(),
vote: data.vote <= 256 && data.vote >= 0 && +data.vote || NaN
}))
.filter((nr) => (console.log(nr), !isNaN(nr.vote)))
.map((vote) => "F:" + vote.contestant + ",V:" + vote.vote.toString(16))
.on("error", (err) => console.log(err && err.stack))
.pipe(process.stdout);
As of version 2.0 Scramjet is MIT Licensed and as of 1.0.0 so is this module.
FAQs
A simple stateless http server that emits all posted objects as a stream
We found that scramjet-http-post demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.