Skip to content

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