From fd22bbb01f665941b59654549fa8fb4a6c2bd562 Mon Sep 17 00:00:00 2001 From: Panther Date: Fri, 1 Dec 2017 23:53:02 +0530 Subject: [PATCH] update read me, version --- Readme.md | 15 ++++++++++++++- package.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index f30a59f..ca49f75 100644 --- a/Readme.md +++ b/Readme.md @@ -1,11 +1,25 @@ # curl-parser-js **Final javascript size is 2.58kB only!!** + Simple javascript library to parse `cUrl command` to `json object`. Regex based matching without adding any complex parser code/library. Can be used in `Node`, in any `frontend project` or as `standalone js file`. With the generated json object you may construct your own `ajax` call using your `favourite` library. ## Usage + ### Standalone + + Add your script tag + + + + Parse your cmd + + const curlCmd = `curl 'http://server.com:5050/a/c/getName/?param1=pradeep¶m2=kumar¶m3=sharma'`; + parse_curl_js.parse(curlCmd); + + Standalone Demo on [Codepen](https://codepen.io/marudhupandiyang/pen/jaXRYp?editors=0010) + ### Node/frontend projects who support modules importing. import Curlparser from 'curl-parser-js'; @@ -69,7 +83,6 @@ } } - ## Roadmap 1. Add plugins to generate request for different libraries. diff --git a/package.json b/package.json index 06ddbf0..e2d9e5f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "curl-parser-js", "description": "Parse curl commands to json object", - "version": "0.0.2", + "version": "0.0.3", "keywords": [ "parse-curl", "curl",