curl-to-node
Transform curl CLI commands to js options for http requests libraries.
Install
$ npm install curl-to-node --save
Usage
;; const str = `curl https://api.github.com/users/ewnd9 \ -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0' \ -H 'Accept: application/json, text/javascript, */*; q=0.01'`; got ;
Roadmap
got
-
-X <method>
-
-H <header>
-
--compressed
-
superagent
- nothing has been done yet
License
MIT © ewnd9