liuwill/curl-log-generator

View on GitHub
index.js

Summary

Maintainability
A
0 mins
Test Coverage
var requestParser = require('./lib/requestParser.js')
var logGenerator = require('./lib/logGenerator.js')
var utils = require('./lib/utils.js')

exports.requestParser = requestParser
exports.logGenerator = logGenerator
exports.utils = utils

exports.generateLogFromCurl = function (ip, curlScript, demoRule) {
  var parsedRequest = requestParser.generateRequest(curlScript)

  var logResult = logGenerator.generateRequestLog(ip, parsedRequest, demoRule)
  return logResult
}