1.0.2 • Published 5 years ago

image-steam-blobby-client v1.0.2

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

image-steam-blobby-client

Blobby client for Image Steam.

For caching only

Options

import isteamBlobbyClient from 'image-steam-blobby-client';

const blobby = new isteamBlobbyClient({
  argv: {
    config: 'local',
    configBase: 'defaults',
    configDir: './config',
    configExts: ['.js', '.json', '.json5']
  },
  options: {
    storageId: 'local'
  }
});
ParamInfo
argv (required)Arguments required by Blobby Client
argv.configName of config/environment
argv.configBaseOptional defaults file
argv.configDirDirectory of configurations
argv.configExtsConfiguration extensions
optionsClient options
options.storageIdDefault storage key

Usage

Example:

import isteam from 'image-steam';

const options = {
  storage: {
    app: {
      static: {
        driver: 'http',
        endpoint: 'https://some-endpoint.com'
      }
    },
    cache: {
      driverPath: 'image-steam-blobby-client',
      options: {
        argv: {
          config: 'local',
          configBase: 'defaults',
          configDir: './config',
          configExts: ['.js', '.json', '.json5']
        },
        options: {
          storageId: 'local'
        }
      }
    }
  }
}

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