google-cloud-storage-sync

A google cloud storage function to sync buckets

Usage no npm install needed!

<script type="module">
  import googleCloudStorageSync from 'https://cdn.skypack.dev/google-cloud-storage-sync';
</script>

README

google-cloud-storage-sync

build status code coverage code style styled with prettier made with lass license npm downloads

A google cloud storage function to sync buckets

Table of Contents

Install

npm:

npm install google-cloud-storage-sync

yarn:

yarn add google-cloud-storage-sync

Usage

const { copyFile } = require('google-cloud-storage-sync');

(async () => {
  const options = {
    srcBucketName: 'src_bucket_name',
    srcFilename: 'src_file',
    destBucketName: 'dest_bucket_name',
    destFilename: 'dest_file',
    retries: 3
  };
  
  await copyFile(options);
});

Contributors

Name Website
Shaun Warman https://shaunwarman.com

License

MIT © Shaun Warman