co-baidu-bcs

a wrapper of baidu-bcs for koa or co

npm install co-baidu-bcs
7 downloads in the last month

NPM

co-baidu-bcs

install

npm install co-baidu-bcs

api

  • putBucket
  • listBucket
  • deleteBucket
  • putObject
  • copyObject
  • putSuperfile
  • getObject
  • headObject
  • listObject
  • deleteObject
  • putAcl
  • getAcl

document

create bcs client

var BCS = require('co-baidu-bcs')
var bcs = BCS.createClient({
    accessKey: 'your access key',
    secretKey: 'your secret key'
})

put bucket

co(function* () {
    var result = yield bcs.putBucket({
        bucket: '',
        acl: ''
    })
})

more information

test

  • coverage: 94%
npm loves you