Skip to content

README for GCS does not match docs #2270

@jasonpolites

Description

@jasonpolites

The README for how to use GCS doesn't match the docs, and the README seems wrong.

The README has:

var storage = require('@google-cloud/storage');

Whereas docs have:

var gcs = require('@google-cloud/storage')();

The former appears to lead to TypeError: gcs.bucket is not a function which suggests that the latter is correct.

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions