newman-reporter-cli-response

Just Console log Result Response Print

Usage no npm install needed!

<script type="module">
  import newmanReporterCliResponse from 'https://cdn.skypack.dev/newman-reporter-cli-response';
</script>

README

Newman CLI Response Reporter

Just Console.log Result

This outputs:

Result Headers ResponseBody


Usage:

newman run collection -r cli-response


Example:

---------------------------------------------------------------
Result :
---------------------------------------------------------------
Status :  OK
Code :  200
responseTime :  232
responseSize :  2367734

---------------------------------------------------------------
Response Headers :
---------------------------------------------------------------
Cache-Control  :  private
Expires  :  Thu, 01 Jan 1970 00:00:00 GMT
X-Content-Type-Options  :  nosniff
X-XSS-Protection  :  1; mode=block
Strict-Transport-Security  :  max-age=31536000 ; includeSubDomains
X-Content-Security-Policy  :  script-src 'self'
Access-Control-Allow-Origin  :  *
Content-Type  :  application/json;charset=UTF-8
Transfer-Encoding  :  chunked
Date  :  Fri, 11 Dec 2020 07:43:50 GMT
Keep-Alive  :  timeout=60
Connection  :  keep-alive

---------------------------------------------------------------
ResponseBody : 
---------------------------------------------------------------
{"list_cnt":0,"total_cnt":0,"list":[]}
---------------------------------------------------------------

Based on the https://www.npmjs.com/package/newman-reporter-json-summary package, but slimmed down further.