Comparing version 0.0.1 to 0.0.2
@@ -0,3 +1,8 @@ | ||
## v0.0.2 - August 13, 2014 | ||
* Quote URLs. | ||
* Add `ffcurl` as an alias for `fcurl --extended`. | ||
## v0.0.1 - August 9, 2014 | ||
* Yo. |
@@ -60,3 +60,3 @@ var qsparse = require('querystring').parse; | ||
Request.prototype.toString = function () { | ||
var cmd = 'http ' + this.method + ' ' + this.url; | ||
var cmd = 'http ' + this.method + ' ' + quote(this.url); | ||
var cr = ' \\\n'; | ||
@@ -63,0 +63,0 @@ var args = []; |
{ | ||
"name": "curlformat", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "CLI utility to clean up your 'Copy as cURL' strings", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"bin": { | ||
"fcurl": "./bin/fcurl" | ||
"fcurl": "./bin/fcurl", | ||
"ffcurl": "./bin/ffcurl" | ||
}, | ||
@@ -13,0 +14,0 @@ "author": "Rico Sta. Cruz <hi@ricostacruz.com>", |
@@ -1,2 +0,2 @@ | ||
# curlformat | ||
# npm install -g curlformat | ||
@@ -18,8 +18,8 @@ I like to do this in Firefox or Chrome. The output is unreadable though. | ||
BAM! Now readable! | ||
BAM! Now its readable! | ||
```sh | ||
$ http POST "http://site.com/article/new" \ | ||
title="Hello" \ | ||
body="Welcome to my site!" | ||
http POST "http://site.com/article/new" \ | ||
title="Hello" \ | ||
body="Welcome to my site!" | ||
``` | ||
@@ -33,8 +33,8 @@ | ||
```sh | ||
$ http OPTIONS "http://site.com/users" \ | ||
Connection:"keep-alive" \ | ||
Access-Control-Request-Method:"GET" \ | ||
Origin:"http://site.com" \ | ||
Accept-Encoding:"gzip, deflate" \ | ||
... | ||
http OPTIONS "http://site.com/users" \ | ||
Connection:"keep-alive" \ | ||
Access-Control-Request-Method:"GET" \ | ||
Origin:"http://site.com" \ | ||
Accept-Encoding:"gzip, deflate" \ | ||
... | ||
``` | ||
@@ -41,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36249
8