s3-archive

0.0.1 • Public • Published

S3 Archive

Takes source files from S3 and uploads a zip or tar of those files to S3.

Example Usage:

const AWS = require("aws-sdk");
const s3Archive = require("s3-archive");

const s3 = new AWS.S3();

const files = [
  { Bucket: "source-bucket", Key: "index.html" },
  { Bucket: "source-bucket", Key: "js/main.js" },
  { Bucket: "source-bucket", Key: "css/main.css" },
  { Bucket: "source-bucket", Key: "img/logo.png" }
];

s3Archive(s3, files, "destination-bucket", "archive.zip");

Package Sidebar

Install

npm i s3-archive

Weekly Downloads

9

Version

0.0.1

License

ISC

Unpacked Size

1.58 kB

Total Files

3

Last publish

Collaborators

  • dmurawsky