Socket
Book a DemoInstallSign in
Socket

cdn-up

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdn-up

upyun cdn upload

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

cdn-up

又拍云cdn上传

使用方法

upUpload(options, [callback])

options:

  • src glob pattern
  • dest upload path
  • bucket
  • operator
  • password

callback: [可选]

  • error
  • result

示例

upUpload({
    operator: 'test',
    password: 'test',
    bucket: 'upyun-text',
    domain: ''  // 该 bucket 对应的域名,可不填
    src: 'build/**/*.js',
    dest: '/build',
    pathMap: {  // 上传路径与实际文件路径的映射
      '/Users/tmp/2017/2390392039.png': '/Users/name/test.png'
    }
}, function(err, result) {
    if (err) {
        console.error(err);
    }
});

Keywords

upyun

FAQs

Package last updated on 15 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.