upyun_cdn

0.1.5 • Public • Published

upyun_cdn

又拍云cdn上传

使用方法

upyun_cdn(options, auth, [callback])

options:

  • src glob pattern
  • dest upload path

auth:

  • bucket
  • operator
  • password

callback: [可选]

  • error
  • result

示例

upyun_cdn({
    src: 'build/**/*.js',
    dest: '/build'
}, {
    bucket: 'upyun-text',
    operator: 'test',
    password: 'test'
}, function(err, result) {
    if (err) {
        console.error(err);
    }
});

/upyun_cdn/

    Package Sidebar

    Install

    npm i upyun_cdn

    Weekly Downloads

    9

    Version

    0.1.5

    License

    MIT

    Last publish

    Collaborators

    • jinphen