object-to-gcp-bucket
v0.1.3
Published
For usage in Google Cloud Functions. Stores objects as JSON files in GCP buckets.
Downloads
7
Readme
#Object-to-GCP-Bucket This package is intended for use in GCP Cloud Functions to push a given JavaScript object to a defined bucket as a JSON file.
Installation
npm install object-to-gcp-bucket
Usage
await new StorageWriter().writeObject({ any: 'data' }, 'my-gcp-bucket', 'folder/to/my/file.json');
Test
npm run test