UNPKG

bfg

Version:

Big Friendly Gateway creates a read and write stream to various cloud storage providers

17 lines (15 loc) 335 B
var pkgcloud = require('pkgcloud'); var tools = require('./tools'); module.exports = function(options){ tools.check_options(options, [ 'username', 'apikey', 'region' ]) return pkgcloud.storage.createClient({ provider: 'rackspace', username: options.username, apiKey: options.apikey, region: options.region }) }