Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
oppressor-contrib
Advanced tools
streaming http compression response negotiator
You can use plain old streams:
var oppressor = require('oppressor');
var fs = require('fs');
var http = require('http');
var server = http.createServer(function (req, res) {
fs.createReadStream(__dirname + '/data.txt')
.pipe(oppressor(req))
.pipe(res)
;
});
server.listen(8000);
or you can use fancy streaming static file server modules like filed that set handy things like etag, last-modified, and content-type headers for you:
var oppressor = require('oppressor');
var filed = require('filed');
var http = require('http');
var server = http.createServer(function (req, res) {
filed(__dirname + '/data.txt')
.pipe(oppressor(req))
.pipe(res)
;
});
server.listen(8000);
var oppressor = require('oppressor')
Return a duplex stream that will be compressed with gzip, deflate, or no compression depending on the accept-encoding headers sent.
oppressor will emulate calls to http.ServerResponse methods like writeHead()
so that modules like filed that expect to be
piped directly to the response object will work.
With npm do:
npm install oppressor
MIT
FAQs
fork of the streaming http compression response negotiator
We found that oppressor-contrib 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.