image-steam-blobby-client
v1.0.2
Published
Blobby client for Image Steam: https://github.com/asilvas/node-image-steam
Downloads
1
Readme
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'
}
});
| Param | Info | | --- | --- | | argv (required) | Arguments required by Blobby Client | | argv.config | Name of config/environment | | argv.configBase | Optional defaults file | | argv.configDir | Directory of configurations | | argv.configExts | Configuration extensions | | options | Client options | | options.storageId | Default 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')
;