Gathering detailed insights and metrics for aws-s3-multipart-copy
Gathering detailed insights and metrics for aws-s3-multipart-copy
Gathering detailed insights and metrics for aws-s3-multipart-copy
Gathering detailed insights and metrics for aws-s3-multipart-copy
aws-s3-object-multipart-copy
Copy large files in S3 using the AWS S3 Multipart API.
aws-s3-copy-x
Use aws-sdk to multipart copy from one bucket to another
@jeffbski-rga/aws-s3-multipart-copy
This node js package provides a simple usage for multipart copying between buckets in aws-s3 via the official aws-sdk v3. It manages the 3 steps required for multipart copy including byte-range offsetting and parts order.
@svedbg/aws-s3-multipart-copy
This node js package provides a simple usage for multipart copying between buckets in aws-s3 via the official aws-sdk. It manages the 3 steps required for multipart copy including byte-range offsetting and parts order.
A wrapper for npm aws-sdk that manages multipart copy process
npm install aws-s3-multipart-copy
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
20 Stars
96 Commits
20 Forks
6 Watchers
31 Branches
12 Contributors
Updated on Mar 08, 2022
Latest Version
1.1.0
Package Id
aws-s3-multipart-copy@1.1.0
Unpacked Size
62.97 kB
Size
12.42 kB
File Count
9
NPM Version
8.1.0
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Wraps aws-sdk with a multipart-copy manager, in order to provide an easy way to copy large objects from one bucket to another in aws-s3. The module manages the copy parts order and bytes range according to the size of the object and the desired copy part size. It speeds up the multipart copying process by sending multiple copy-part requests simultaneously.
** The package supports aws-sdk version '2006-03-01' and above.
** The package supports node 8 version and above.
npm install aws-s3-multipart-copy
aws-s3-multipart-copy is based on the aws-sdk and therefore requires an initialized AWS.S3 instance.
Also, it requires a logger instance which supports 'info' and 'error' level of logging (meaning logger.info and logger.error are functions).
1let bunyan = require('bunyan'),
2 AWS = require('aws-sdk'),
3 s3Module = require('aws-s3-multipart-copy');
4
5let logger = bunyan.createLogger({
6 name: 'copy-object-multipart',
7 level: 'info',
8 version: 1.0.0,
9 logType: 'copy-object-multipart-log',
10 serializers: { err: bunyan.stdSerializers.err }
11 });
12
13let s3 = new AWS.S3();
14
15s3Module.init(s3, logger);
After module is initialized, the copyObjectMultipart functionality is ready for usage. copyObjectMultipart returns a promise and can only copy (and not upload) objects from bucket to bucket.
** Objects size for multipart copy must be at least 5MB.
The method receives two parameters: options and request_context
A successful result might hold any of the following keys as specified in aws s3 completeMultipartUpload docs
In case multipart copy fails, three scenarios are possible:
Positive
1let request_context = 'request_context'; 2let options = { 3 source_bucket: 'source_bucket', 4 object_key: 'object_key', 5 destination_bucket: 'destination_bucket', 6 copied_object_name: 'someLogicFolder/copied_object_name', 7 object_size: 70000000, 8 copy_part_size_bytes: 50000000, 9 copied_object_permissions: 'bucket-owner-full-control', 10 expiration_period: 100000, 11 storage_class: 'STANDARD' 12 }; 13 14 return s3Module.copyObjectMultipart(options, request_context) 15 .then((result) => { 16 console.log(result); 17 }) 18 .catch((err) => { 19 // handle error 20 }) 21 22 /* Response: 23 result = { 24 Bucket: "acexamplebucket", 25 ETag: "\"4d9031c7644d8081c2829f4ea23c55f7-2\"", 26 Expiration: 100000, 27 Key: "bigobject", 28 Location: "https://examplebucket.s3.amazonaws.com/bigobject" 29 } 30 */
Negative 1 - abort action passed but copy parts were not removed
1let request_context = 'request_context'; 2let options = { 3 source_bucket: 'source_bucket', 4 object_key: 'object_key', 5 destination_bucket: 'destination_bucket', 6 copied_object_name: 'someLogicFolder/copied_object_name', 7 object_size: 70000000, 8 copy_part_size_bytes: 50000000, 9 copied_object_permissions: 'bucket-owner-full-control', 10 expiration_period: 100000, 11 storage_class: 'STANDARD' 12 }; 13 14 return s3Module.copyObjectMultipart(options, request_context) 15 .then((result) => { 16 // handle result 17 }) 18 .catch((err) => { 19 console.log(err); 20 }) 21 22 /* 23 err = { 24 message: 'Abort procedure passed but copy parts were not removed' 25 details: { 26 Parts: ['part 1', 'part 2'] 27 } 28 } 29 */
Negative 2 - abort action succeded
1let request_context = 'request_context'; 2let options = { 3 source_bucket: 'source_bucket', 4 object_key: 'object_key', 5 destination_bucket: 'destination_bucket', 6 copied_object_name: 'someLogicFolder/copied_object_name', 7 object_size: 70000000, 8 copy_part_size_bytes: 50000000, 9 copied_object_permissions: 'bucket-owner-full-control', 10 expiration_period: 100000, 11 storage_class: 'STANDARD' 12 }; 13 14 return s3Module.copyObjectMultipart(options, request_context) 15 .then((result) => { 16 // handle result 17 }) 18 .catch((err) => { 19 console.log(err); 20 }) 21 22 /* 23 err = { 24 message: 'multipart copy aborted', 25 details: { 26 Bucket: destination_bucket, 27 Key: copied_object_name, 28 UploadId: upload_id 29 } 30 } 31 */
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/13 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More