
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
barnard59-s3
Advanced tools
barnard59-s3
Add support for S3 to barnard59.
getObject
Get an object from a S3 bucket into the file system.
Option | Type | Required | Description |
---|---|---|---|
bucket | string | true | The name of the S3 bucket |
key | string | true | The key of the object |
destinationPath | string | true | The path where the object should be downloaded. If the directory that contains the path do not exist, it will be created. |
accessKeyId | string | false | S3 Access Key ID |
secretAccessKey | string | false | S3 Secret Access Key |
And all options from S3ClientConfigType of the AWS SDK, which includes those fields for example:
endpoint
(type: string
; configure a custom endpoint)region
(type: string
; defaults to us-east-1
if not specified)forcePathStyle
(type: boolean
; set to true
if you want to use a custom endpoint)putObject
Put an object from the file system into a S3 bucket.
Option | Type | Required | Description |
---|---|---|---|
bucket | string | true | The name of the S3 bucket |
key | string | true | The key of the object |
sourcePath | string | true | The path of the file on the local file system |
accessKeyId | string | false | S3 Access Key ID |
secretAccessKey | string | false | S3 Secret Access Key |
And all options from S3ClientConfigType of the AWS SDK, which includes those fields for example:
endpoint
(type: string
; configure a custom endpoint)region
(type: string
; defaults to us-east-1
if not specified)forcePathStyle
(type: boolean
; set to true
if you want to use a custom endpoint)getObjectStream
(getObject/stream
operation)Get an object from a S3 bucket as a Readable
stream.
Option | Type | Required | Description |
---|---|---|---|
bucket | string | true | The name of the S3 bucket |
key | string | true | The key of the object |
accessKeyId | string | false | S3 Access Key ID |
secretAccessKey | string | false | S3 Secret Access Key |
And all options from S3ClientConfigType of the AWS SDK, which includes those fields for example:
endpoint
(type: string
; configure a custom endpoint)region
(type: string
; defaults to us-east-1
if not specified)forcePathStyle
(type: boolean
; set to true
if you want to use a custom endpoint)This returns a Readable
stream that contains the content of the requested object.
To put a stream into a S3 bucket, you will need to first write the stream to a file and then use putObject
to upload the file to S3.
Direct stream to S3 upload is not supported.
FAQs
S3 support for Linked Data pipelines
We found that barnard59-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.