Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

object-to-gcp-bucket

Achneoder4MIT0.1.3TypeScript support: included

For usage in Google Cloud Functions. Stores objects as JSON files in GCP buckets.

GCP, bucket, cloud, storage, JSON

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