An extremely basic library providing a utility method to convert
curl command line syntax into a url with get parameters. Ignores all flags except for -d and --data. (Mostly a chance to play with node modules and npm.)
npm install https://github.com/dmgig/curlToGet.git
var curltoget = require('curltoget')
convert = curltoget.convert;
var curl = 'curl -GL -d dog=Fido -d cat=Kitty -d horse=Banjo http://petznamez.net',
url = convert(curl);
console.log(url);
// http://petznamez.net?dog=Fido&cat=Kitty&horse=Banjo
npm test
- 0.1.0 Initial release
- 0.1.1 allow long names
thanks to https://quickleft.com/blog/creating-and-publishing-a-node-js-module/