1.0.1 • Published 2 years ago

node-curl-to-har v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

node-curl-to-har

Transpile curl commands into Har Object for node.js

Installation

npm install node-curl-to-har

Usage

const nodeCurlToHar = require('node-curl-to-har');
const curl= `curl 'http://www.apipost.cn/' `
const har=nodeCurlToHar(curl);
console.log(har)
/*
logs:
[{"request":{"method":"GET","url":"http://www.apipost.cn/","httpVersion":"HTTP/1.1","cookies":[],"headers":[],"queryString":[],"headersSize":-1,"bodySize":-1}}]
*/

#License MIT © Apipost-Team

1.0.1

2 years ago

1.0.0

2 years ago