Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 335 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 335 Bytes

url-to-s3

Store the resource pointed to by a url in an S3 bucket.

  const result = await urlToS3(
    { bucketName: 'xkcd-archive' },
    'https://imgs.xkcd.com/comics/the_cloud.png'
  );

Examples

Basic Example

Loop Example - creates S3 client first for reuse in a loop.