Comparing version 0.0.1 to 0.0.2
@@ -26,3 +26,2 @@ #!/usr/bin/env node | ||
}) | ||
console.log(matched); | ||
matched.forEach(image => { | ||
@@ -32,3 +31,4 @@ let imagePath = path.resolve(process.cwd(), image); | ||
axios.post(endpoint, { | ||
data: imageAsBase64 | ||
data: imageAsBase64, | ||
name: image | ||
}) | ||
@@ -35,0 +35,0 @@ .then(response => { |
{ | ||
"name": "upldng", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple uploader for personal use", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"test": "exit 0", | ||
"start": "node index.js" | ||
@@ -9,0 +9,0 @@ }, |
# upldng | ||
Simple image uploader for personal use | ||
Simple image uploader for personal use. Will upload all jpgs in the current directory to a specified endpoint. | ||
## Installation | ||
`npm install -g upldng` | ||
## Usage | ||
Add a `upldng.config.json` file in the directory with the following properties: | ||
```javascript | ||
{ | ||
"endpoint":"http://sample.com/upload" | ||
} | ||
``` | ||
Then, just navigate to that directory in your terminal and run `upldng`. You will be notified when each file uploads. |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
2188
4
1
14