HAR to cURL
Written in JavaScript. CommonJS format. Inspired by a Python implementation.
:speech_balloon: Try the web interface.
Install
Use npm:
npm install har-to-curl
Example
var harToCurl = require('har-to-curl');
var myHarString = '{"startedDateTime": "2013-02-21T16:23:17.806Z", "time": 577, "request": { "method": "GET", "url": "http://...';
var myCurlCommand;
var myHarObject = JSON.parse(myHarString);
myCurlCommand = harToCurl(myHarObject);
myCurlCommand = harToCurl(myHarString);
License
Copyright © 2012 Matthew Caruana Galizia, licensed under an MIT license.