Comparing version 1.0.3 to 1.0.4
{ | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
@@ -28,2 +28,39 @@ [![Test Coverage](https://api.codeclimate.com/v1/badges/82ebbb63cf10115c4a09/test_coverage)](https://codeclimate.com/github/flexper/savim/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/82ebbb63cf10115c4a09/maintainability)](https://codeclimate.com/github/flexper/savim/maintainability) ![npm](https://img.shields.io/npm/v/savim) ![npm](https://img.shields.io/npm/dm/savim) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/savim) ![NPM](https://img.shields.io/npm/l/savim) | ||
### uploadFile(filenameWithPath, content, params?, providerName?) | ||
Upload file | ||
***Params*** | ||
| Field Name | Type | Default | Description | | ||
| ---------------- | -------------------- | -------- | ------------------------------ | | ||
| filenameWithPath | string | required | where to upload file | | ||
| content | string/Buffer/Stream | required | file content | | ||
| config | object | {} | Additional Config for provider | | ||
| providerName | object | optional | provider name | | ||
### getFile(filenameWithPath, params?, providerName?) | ||
Get file | ||
***Params*** | ||
| Field Name | Type | Default | Description | | ||
| ---------------- | -------------------- | -------- | ------------------------------ | | ||
| filenameWithPath | string | required | where to get file | | ||
| config | object | {} | Additional Config for provider | | ||
| providerName | object | optional | provider name | | ||
### deleteFile(filenameWithPath, params?, providerName?) | ||
Delete file | ||
***Params*** | ||
| Field Name | Type | Default | Description | | ||
| ---------------- | -------------------- | -------- | ------------------------------ | | ||
| filenameWithPath | string | required | where to delete file | | ||
| config | object | {} | Additional Config for provider | | ||
| providerName | object | optional | provider name | | ||
## Tests | ||
@@ -30,0 +67,0 @@ |
46528
76