node-curl-to-har

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i node-curl-to-har

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

286 kB

Total Files

22

Last publish

Collaborators

  • chengyang12138
  • proud_lion
  • lee-meng
  • wjzhangq
  • apipost-lab001
  • xbw19975
  • trqdz