co-qiniu
A Qiniu sdk for node.js, which is for co-like interface.
Last updated a year ago by otarim .
ISC · Repository · Bugs · Original npm · Tarball
$ cnpm install co-qiniu 
SYNC missed versions from official npm registry.

co-qiniu

A Qiniu sdk for node.js, which is for co-like interface.

##usage

var qn = require('co-qiniu')
qn.config({
    ACCESS_KEY: '<Your Access Key>',
    SECRET_KEY: '<Your Secret Key>'
})

##api

config

配置认证

config({
    ACCESS_KEY: '<Your Access Key>',
    SECRET_KEY: '<Your Secret Key>'
})

upload

支持本地文件以及buffer上传,Json[]

function*(bucket, key, file, extra)

stat

获取文件信息,Json[]

function*(bucket, key)

remove

删除,Json[]

function*(bucket, key)

copy

复制,Json[]

function*(bucketSrc, keySrc, bucketDest, keyDest)

move

移动,Json[]

function*(bucketSrc, keySrc, bucketDest, keyDest)

list

文件清单,Json[]

function*(config)

getUrl

获取文件访问路径,String

function(bucketDomain, key, isPrivate)

getThumb

获取缩略图, String

function(bucketDomain, key, extra)

getInfo

获取文件信息, Json[]

function*(bucketDomain, key, extra)

getExif

获取文件Exif, Json[]

function*(bucketDomain, key, extra)

参数列表参考七牛sdk文档 http://developer.qiniu.com/docs/v6/sdk/nodejs-sdk.html

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 8
Dependencies (6)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |