node package manager


Formats http(s) responses a la <code>curl -i</code> as a duplex stream.


Formats http(s) responses a la curl -i as a duplex stream.

npm install format-response
var format = require('format-response')
http.get('', function (res) {


Array - list of header names to ignore (case-insensitive). Default: []

boolean - if the response type is 'application/json', prettify the JSON output. Default: false

boolean - print the request header before the response. Default: false

boolean - don't print the response body. Default: false

Make sure you have the development dependencies installed by running npm install, then you should be able to run the tests with npm test.

(The MIT License)

Copyright 2014 Cameron Lakenen