ali-oss-lazy-upload

0.5.0 • Public • Published

ali-oss-lazy-upload

Installation

npm install -g ali-oss-lazy-upload

Configuration file

You should create a configuration file. Example:

// YOUR-CONFIG-FILE.js
module.exports = {
  visitor: {
    region: '<OSS region>',
    accessKeyId: '<OSS accessKeyId>',
    accessKeySecret: '<OSS accessKeySecret>',
    bucket: '<OSS bucket name>',
    secure: true,
  },
  uploader: {
    region: '<OSS region>',
    accessKeyId: '<OSS accessKeyId>',
    accessKeySecret: '<OSS accessKeySecret>',
    bucket: '<OSS bucket name>',
    secure: true,
  },
}

Usage

ali-oss-lazy-upload CONFIG-JS-FILE LOCAL-FILE REMOTE-PATH [FORCE-UPLOAD]

Readme

Keywords

Package Sidebar

Install

npm i ali-oss-lazy-upload

Weekly Downloads

23

Version

0.5.0

License

MIT

Unpacked Size

4.78 kB

Total Files

9

Last publish

Collaborators

  • fangqk1991