Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Open Handler for Google Cloud Storage / gcs #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobiasstrebitzer
Copy link

@tobiasstrebitzer tobiasstrebitzer commented Jan 4, 2022

Improvements

  • Support Open.gcs for Google Cloud Storage, using the @google-cloud/storage npm package.

Signature

unzip.Open.gcs(storage: Storage, params: { Bucket: string, Key: string })

Example

import { Open } from 'unzipper'
import { Storage } from '@google-cloud/storage'

const storage = new Storage()
const directory = await Open.gcs(storage, { Bucket: 'unzipper', Key: 'archive.zip' })

@ZJONSSON
Copy link
Owner

Thank you @tobiasstrebitzer. When I run the tests locally:

Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants