New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

har-to-curl

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

har-to-curl - npm Package Compare versions

Comparing version

to
0.1.1

component.json

1

lib/har-to-curl.js

@@ -8,2 +8,3 @@ /**

* @license MIT License
* @version 0.1.1
*/

@@ -10,0 +11,0 @@

2

package.json
{
"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).