storage-gcp
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

Storage Google Cloud Platform

This package exports an implementation of Storage that allows using google cloud platform storage buckets as a generic storage unit.

Usage

import { GoogleCloudStorage, GoogleCloudStorageOptions } from 'storage-gcp'

const options: GoogleCloudStorageOptions = {
  // ...
}
const storage = new GoogleCloudStorage(options)

Optional: Register component with StorageFactory.

import { getStorageFactory } from 'storage-core'
import { GoogleCloudStorage } from 'storage-gcp'

getStorageFactory().register('google-cloud', GoogleCloudStorage)

//...

const options: GoogleCloudStorageOptions = {
  // ...
}
const storage = getStorageFactory().create({ type: 'google-cloud', ...options })

/storage-gcp/

    Package Sidebar

    Install

    npm i storage-gcp

    Weekly Downloads

    37

    Version

    0.7.2

    License

    MIT

    Unpacked Size

    12.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • jsbroks