node-curl-to-har
v1.0.1
Published
一个Node环境下用于将curl命令转换成har对象的工具库
Downloads
8
Keywords
Readme
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