Code Monkey home page Code Monkey logo

curlup's People

Contributors

imolorhe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tmax

curlup's Issues

Query params are not returned after parsing CURL

Hi, I have installed your library for parsing CURL strings. I tried to parse this string
curl --location --request GET 'https://a.klaviyo.com/api/v2/lists?api_key=my_api_key' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1bmlxdWVfbmFtZSI6IkVsaXFzMjAyMSIsInN1YiI6IkVsaXFzMjAyMSIsInJvbGUiOiJVc2VyIiwiaXNzIjoiYXBwLmN1c3RvbWlseS5jb20iLCJhdWQiOiJhbGwiLCJleHAiOjE2NTkxMTMwODEsIm5iZiI6MTY1NjUyMTA4MX0.fsF4UHhtXhCwvMiDe0JxXEBXvsaSlsaNSAo82GM6Bgc' \ --header 'Content-Type: application/json'

And my code is
import { parseCurl as trueParseCurl } from 'curlup'; const parsed = trueParseCurl(curlString); console.log(parsed);
The query parameters of the URL were not returned in parsing result:
{ "url": "https://a.klaviyo.com/api/v2/lists?api_key=my_api_key", "method": "GET", "headers": { "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1bmlxdWVfbmFtZSI6IkVsaXFzMjAyMSIsInN1YiI6IkVsaXFzMjAyMSIsInJvbGUiOiJVc2VyIiwiaXNzIjoiYXBwLmN1c3RvbWlseS5jb20iLCJhdWQiOiJhbGwiLCJleHAiOjE2NTkxMTMwODEsIm5iZiI6MTY1NjUyMTA4MX0.fsF4UHhtXhCwvMiDe0JxXEBXvsaSlsaNSAo82GM6Bgc", "Content-Type": "application/json" }, "auth": {} }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.