fastify-google-cloud-storage

1.0.3 • Public • Published

fastify-google-cloud-storage

Install

npm install --save fastify-google-cloud-storage

Usage

Import "fastify-google-cloud-storage" and register it into Fastify instance

fastify.register(require('fastify-google-cloud-storage'), {
  projectId: '',    // [string, required] GCP project id
  keyFilename: ''   // [string, optional] path to service account json file 
})

you can access the Cloud Storage client via:

const cloudStorage = fastify.googleCloudStorage

Readme

Keywords

none

Package Sidebar

Install

npm i fastify-google-cloud-storage

Weekly Downloads

14

Version

1.0.3

License

ISC

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • carlozamagni