Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ncsa-combined-log-format
Advanced tools
A transform stream, converting combined common log format to object
A transform stream, converting combined common log format to object
npm install common-log-format
var Clf = require("ncsa-combined-log-format");
var stream = require("stream");
var output = new stream.Writable({objectMode:true});
output._write = function(chunk, enc, cb) {
console.log(chunk);
cb();
};
var input = new stream.Readable();
var clf = new Clf();
clf.on("error",function(e){
console.log(e);
});
input.pipe(new Clf()).pipe(output);
input.push("127.0.0.1 logname user [Wed, 11 Jun 2014 15:51:48 GMT] \"GET /package.json HTTP/1.1\" 200 733 \"http://localhost:8000/\" \"userAgent\"\n");
input.push(null);
Will output:
{ host: '127.0.0.1',
logName: 'logname',
user: 'user',
date: 2014-06-11T15:51:48.000Z,
request: { method: 'GET', httpVersion: '1.1', uri: '/package.json' },
statusCode: 200,
size: 733,
referer: 'http://localhost:8000/',
userAgent: 'userAgent' }
FAQs
A transform stream, converting combined common log format to object
We found that ncsa-combined-log-format 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.