har-to-curl

0.5.0 • Public • Published

HAR to cURL

Written in JavaScript. CommonJS format. Inspired by a Python implementation.

💬 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;

// Passing in an object:
var myHarObject = JSON.parse(myHarString);
myCurlCommand = harToCurl(myHarObject);

// Passing in a string - will be JSON.parsed automatically:
myCurlCommand = harToCurl(myHarString);

License

Copyright © 2012 Matthew Caruana Galizia, licensed under an MIT license.

Readme

Keywords

Package Sidebar

Install

npm i har-to-curl

Weekly Downloads

68

Version

0.5.0

License

MIT

Unpacked Size

3.49 kB

Total Files

3

Last publish

Collaborators

  • mcg