@comparaonline/transfer-to-s3
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Transfer to S3

Transfer a file on a URL to an S3 bucket. Usage:

import { TransferToS3 } from '@comparaonline/transfer-to-s3';

const transferToS3 = new TransferToS3({
  download: {
    timeout: 10000,
    attempts: 5,
    backoffTime: 2000,
  },
  s3: {
    bucket: 'my-bucket',
    accessKeyId: 'my-key-id',
    secretAccessKey: 'my-access-key',
    region: 'us-east-1'
  }
});

// optional:
transferToS3.setHeaders({ Authorization: 'Bearer THISSHOULDBEATOKEN'});

await transferToS3.transfer(
    'http://example.org/', 
    'directory/example-org-index.html'
);

/@comparaonline/transfer-to-s3/

    Package Sidebar

    Install

    npm i @comparaonline/transfer-to-s3

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    20.6 kB

    Total Files

    37

    Last publish

    Collaborators

    • gnavarro
    • dsuarez_compa
    • pfariaz
    • ricardo.sosa
    • suarezcumare
    • comparaonline-dev
    • comparaonlineprivate
    • matotias
    • javierlara1989
    • smurua
    • eseceve
    • pablocompara