New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jarvisniu/upload-oss

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jarvisniu/upload-oss

Upload dist files to Aliyun OSS with one command

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

upload-oss

Upload dist files to Aliyun OSS with one command

Usage

Install npm install -D @jarvisniu/upload-oss

Set oss config env variables in .env:

OSS_ACCESS_KEY_ID = 'my-oss-access-key-id'
OSS_ACCESS_KEY_SECRET = 'my-oss-access-key-secret'
OSS_REGION = 'my-oss-region'
OSS_BUCKET = 'my-bucket-name'

Run in cli:

npx upload-oss

Or in npm scripts:

{
  "scripts": {
    "upload": "upload-oss --oss-base-dir my-app-dir"
  }
}

CLI Args

npx upload-oss --output-dir dist --oss-base-dir my-app --clean

  • output-dir: local source directory, default is dist
  • oss-base-dir: oss target directory, default is /
  • clean: Whether to diff and clean the oss target directory after uploading, default is false

Licence

MIT

Keywords

FAQs

Package last updated on 08 Sep 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc