1.0.2 • Published 6 years ago

image-steam-blobby v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

image-steam-blobby

Blobby client for Image Steam.

For caching only

Options

import isteamBlobby from 'image-steam-blobby';

const blobby = new isteamBlobby({
  endpoint: 'https://some-endpoint.com',
  bucket: 'myBucket', // equates to https://some-endpoint.com/myBucket
  secret: 'mySecretShhh' // enable writes
});
ParamInfo
endpoint (required)Endpoint of http(s) service
secretOnly required if using as a cache layer that must write back to storage
bucketPath of folder from root

Usage

Example:

import isteam from 'image-steam';

const options = {
  storage: {
    app: {
      static: {
        driver: 'http',
        endpoint: 'https://some-endpoint.com'
      }
    },
    cache: {
      driverPath: 'image-steam-blobby',
      endpoint: 'https://some-endpoint.com',
      bucket: 'myBucket',
      secret: 'mySecretShh' // enable writes
    }
  }
}

http.createServer(new isteam.http.Connect(options).getHandler())
  .listen(13337, '127.0.0.1')
;