https://github.com/carlozamagni/fastify-google-cloud-storage
Fastify plugin that exposes a GCP Cloud Storage client instance.
https://github.com/carlozamagni/fastify-google-cloud-storage
fastify fastify-plugin gcp nodejs storage
Last synced: 2 months ago
JSON representation
Fastify plugin that exposes a GCP Cloud Storage client instance.
- Host: GitHub
- URL: https://github.com/carlozamagni/fastify-google-cloud-storage
- Owner: carlozamagni
- License: mit
- Created: 2019-02-08T12:56:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-23T21:49:34.000Z (about 1 year ago)
- Last Synced: 2025-10-04T05:50:44.874Z (9 months ago)
- Topics: fastify, fastify-plugin, gcp, nodejs, storage
- Language: JavaScript
- Size: 769 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-google-cloud-storage
## Install
```
npm install --save fastify-google-cloud-storage
```
## Usage
Import "fastify-google-cloud-storage" and register it into Fastify instance
```javascript
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:
```javascript
const cloudStorage = fastify.googleCloudStorage
```