mead-plugin-source-gcs

2.0.4 • Public • Published

mead-plugin-source-gcs

npm versionBuild StatusCoverage StatusDependency status

Google Cloud Storage source for the Mead image transformer service - loads images from a GCS bucket.

Installation

npm install --save mead-plugin-source-gcs

Usage

Your mead configuration file (mead --config <path-to-config.js>):

module.exports = {
  // Load the plugin
  plugins: [
    require('mead-plugin-source-gcs')
  ],

  // Define a source using GCS
  sources: [{
    name: 'my-gcs-source',
    adapter: {
      type: 'gcs',
      config: {
        projectId: 'some-project-123',
        pathPrefix: 'photos', // Optional
        bucket: 'my-bucket-name',

        // Either provide `keyFilename` or `credentials`
        // (`credentials` being the contents of a key file)
        keyFilename: '/path/to/gcs-key.json'
      }
    }
  }]
}

License

MIT-licensed. See LICENSE.

Package Sidebar

Install

npm i mead-plugin-source-gcs

Weekly Downloads

2

Version

2.0.4

License

MIT

Last publish

Collaborators

  • rexxars