Skip to content
Quick node script to diff two API responses
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
compare-responses.js
package.json

README.md

This is a quick script I wrote to help me when testing. Often a requirement of a change being made is that the response being returned does not change. This script takes two URLs, makes a request to each one and diffs the responses, printing the results in colour to the terminal.

Usage:

npm install
node compare-responses.js "http://www.google.com/" "http://www.google.com/"
You can’t perform that action at this time.