har-to-curl
Advanced tools
Comparing version
@@ -8,2 +8,3 @@ /** | ||
* @license MIT License | ||
* @version 0.1.1 | ||
*/ | ||
@@ -10,0 +11,0 @@ |
{ | ||
"name": "har-to-curl", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Matthew Caruana Galizia <m@m.cg>", | ||
@@ -5,0 +5,0 @@ "description": "A CommonJS utility for converting a HAR (HTTP Archive) format JSON object to a cURL command string for use on the command line.", |
@@ -1,1 +0,16 @@ | ||
Written in JavaScript. Inspired by a [Python implementation](https://github.com/snoe/harToCurl). | ||
# HAR to curl # | ||
Written in JavaScript. CommonJS format. Inspired by a [Python implementation](https://github.com/snoe/harToCurl). | ||
## Example ## | ||
```JavaScript | ||
var harToCurl = require('har-to-curl'); | ||
var myHarObject = JSON.parse('{"startedDateTime": "2013-02-21T16:23:17.806Z", "time": 577, "request": { "method": "GET", "url": "http://...'); | ||
var myCurlCommand = harToCurl(myHarObject); | ||
``` | ||
## License ## | ||
MIT (see LICENSE.txt). |
3131
106.39%5
66.67%37
27.59%17
750%