nginxparser
Advanced tools
+2
-1
@@ -12,2 +12,3 @@ var fs = require('fs') | ||
| var Parser = module.exports = function (format) { | ||
| format = format.replace('[' , '\\[') | ||
| this.parser = format; | ||
@@ -23,3 +24,3 @@ this.directives = {}; | ||
| boundary = this.escape(match[2]); | ||
| regex = '([^' + boundary + ']+)' + boundary; | ||
| regex = '([^' + boundary + ']*?)' + boundary; | ||
| if (match[3]) { | ||
@@ -26,0 +27,0 @@ regex += this.escape(match[3]); |
+1
-1
| { "name" : "nginxparser", | ||
| "description" : "Parse Nginx log files", | ||
| "version" : "1.2.0", | ||
| "version" : "1.2.1", | ||
| "homepage" : "http://github.com/chriso/nginx_parser", | ||
@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>", |
-25
| var NginxParser = require('./') | ||
| , EventEmitter = require('events').EventEmitter; | ||
| var parser = new NginxParser('$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'); | ||
| var line = '123.456.123.0 - foobarbaz [12th January 2013] "/foo/bar/baz" 200 12350 "https://github.com/chriso/nginx_parser/pull/3/files" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) "'; | ||
| /* | ||
| parser.parseLine(line, function (row) { | ||
| console.log(row); | ||
| }); | ||
| */ | ||
| var ee = new EventEmitter(); | ||
| parser.stream(ee, function (row) { | ||
| console.log(row); | ||
| }, function (err) { | ||
| console.log('Done!') | ||
| }); | ||
| for (var i = 0; i < line.length; i++) { | ||
| ee.emit('data', line[i]); | ||
| } | ||
| ee.emit('end'); |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1
-50%7634
-8.57%5
-16.67%184
-8.91%