New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

oss-upload-tools

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oss-upload-tools

阿里oss自动上传

latest
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

阿里 oss 自动上传工具

如何使用

    npm install oss-upload-tools -D

然后在根目录下创建 oss.config.js 文件,填写 oss 相关信息

    module.exports = {
        region:  region,
        accessKeyId:  accessKeyId,
        accessKeySecret:  accessKeySecret,
        bucket: bucket,
        assetsPath: '/dist/assets',  // 需要上传的静态资源目录,相对于根目录
        remotePath: '/XXX/assets/'  // 需要上传的阿里 oss 远程目录,相对于 bucket 路径
    };

然后在构建完成后调用 node ./node_modules/oss-upload-tools

也可以加入到 package.json script中

Keywords

阿里

FAQs

Package last updated on 04 Jun 2019

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