Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-aws-s3-typescript

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aws-s3-typescript - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc