uploadcare
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -1,5 +0,11 @@ | ||
{ "name": "uploadcare", | ||
"version": "0.3.2", | ||
{ | ||
"name": "uploadcare", | ||
"version": "0.4.0", | ||
"description": "Library for uploadcare.com.", | ||
"keywords": ["upload", "uploadcare", "api", "wrapper"], | ||
"keywords": [ | ||
"upload", | ||
"uploadcare", | ||
"api", | ||
"wrapper" | ||
], | ||
"homepage": "https://github.com/rexmorgan/uploadcare-node", | ||
@@ -12,2 +18,6 @@ "author": "Rex Morgan <rex.morgan@gmail.com> (http://rexflex.net)", | ||
"main": "./lib/main.js", | ||
"bin": { | ||
"uploadcare": "./bin/uploadcare.js", | ||
"uc": "./bin/uploadcare.js" | ||
}, | ||
"repository": { | ||
@@ -20,5 +30,6 @@ "type": "git", | ||
}, | ||
"dependencies": { | ||
"form-data": "latest" | ||
} | ||
"dependencies": { | ||
"form-data": "latest", | ||
"minimist": "^1.2.0" | ||
} | ||
} |
@@ -30,3 +30,3 @@ uploadcare-node | ||
}); | ||
// | ||
@@ -38,3 +38,3 @@ //Upload from URL | ||
}) | ||
``` | ||
@@ -46,1 +46,23 @@ Installation | ||
CLI | ||
--- | ||
Install uploadcare globally (`npm install -g uploadcare`) and you have a CLI tool for interacting with the REST API. | ||
## Commands | ||
### `info` / `i` | ||
Get info for an uploadcare file or group. | ||
```sh | ||
# Single file | ||
uc info --pub=demopublickey --priv=demoprivatekey 1b53f25b-ac5e-46e7-9a76-8bf77d755c55 | ||
# Group of files | ||
uc info --pub=demopublickey --priv=demoprivatekey 80077b0a-3882-4bbc-b4f4-aabf45ff8fb7~3 | ||
``` | ||
## Options | ||
* `-u, --pub` Public key to use (REQUIRED) | ||
* `-r, --priv` Private key to use (REQUIRED) | ||
* `-p, --pretty` Pretty print the response |
244572
8
266
66
2
2
+ Addedminimist@^1.2.0
+ Addedminimist@1.2.8(transitive)