react-aws-s3-typescript
Advanced tools
Comparing version 1.1.0 to 1.1.1-0
{ | ||
"name": "react-aws-s3-typescript", | ||
"version": "1.1.0", | ||
"version": "1.1.1-0", | ||
"description": "Open source npm package to upload your files into AWS S3 Bucket directly using react(typescript template)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -111,2 +111,35 @@ # react-aws-s3-typescript | ||
### List files of a AWS S3 Bucket | ||
```typescript | ||
/* AWS S3 Client */ | ||
/* listFiles.ts */ | ||
import ReactS3Client from 'react-aws-s3-typescript'; | ||
import { s3Config } from './s3Config.ts'; | ||
const listFiles = async () => { | ||
/* Import s3 config object and call the constrcutor */ | ||
const s3 = new ReactS3Client(s3Config); | ||
try { | ||
const fileList = await s3.listFiles(); | ||
console.log(fileList); | ||
/* | ||
* { | ||
* Response: { | ||
* message: "Objects listed succesfully", | ||
* data: List of Objects | ||
* } | ||
* } | ||
*/ | ||
} catch (exception) { | ||
console.log(exception); | ||
/* handle the exception */ | ||
} | ||
} | ||
/* End of listFiles.ts */ | ||
``` | ||
### Delete a file from AWS S3 Bucket | ||
@@ -113,0 +146,0 @@ |
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
25295
191
1