Basic S3 Is a project I have created to make the basic actions of using and interacting with S3 compatible APIs a lot easier
Installation is simple, Just run npm install basic-s3
constStorage=require("basic-s3");constopts={s3Options: {accessKeyId: "accessKeyId",secretAccessKey: "secretAccessKey",endpoint: "endpointUrlHere",region: "optionalRegionForEndpoint"},bucketName: "bucketName"}constS3=newStorage(opts);S3.getObject("Key");Currently Implemented Methods
- getObject(key)
- listObjects()
- uploadToS3(key, localFile)
- deleteFromS3(key)
Additional Helper Functions
- deleteLocalFile(localFilePath)