image-steam-blobby

1.0.2 • Public • Published

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
});
Param Info
endpoint (required) Endpoint of http(s) service
secret Only required if using as a cache layer that must write back to storage
bucket Path 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')
;

Readme

Keywords

none

Package Sidebar

Install

npm i image-steam-blobby

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • asilvas