1.0.2 • Published 5 years ago

google-storage-big-combine v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

google-storage-big-combine

Rationale: Google Storage java api's bucket.combine() method has a limit of 30 or so files.

There are use cases where there are more than the max-allowed parts so a utility method to iterate and comnbine is required

Prerequisites

You already know how to install and use the Google Cloud Storage javascript api

Usage:

const {combine} = require('google-storage-big-combine')

< Create your instance of google storage >

let bucket =  <GCS bucket instance> 
let fileList = <list of GCS files> 
let file = <destination GCS file for the combine>

await combine(bucket, fileList, file)