url-to-s3

2.1.0 • Public • Published

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.

/url-to-s3/

    Package Sidebar

    Install

    npm i url-to-s3

    Weekly Downloads

    1

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    3

    Last publish

    Collaborators

    • newtnik