Socket
Book a DemoInstallSign in
Socket

gem-mine-cdn-cs

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gem-mine-cdn-cs

gem-mine cs cdn

0.2.5
latest
Source
npmnpm
Version published
Weekly downloads
2
-71.43%
Maintainers
4
Weekly downloads
 
Created
Source

gem-mine-cdn-cs

用于NodeJS侧上传文件夹到CDN服务

内部包,API可能会调整,请锁定版本使用

Demo

const uploadToCS = require('gem-mine-cdn-cs')

try {
  await uploadToCS({
    uploadOrigin: 'http://cs.101.com',  // 域名
    bucket: 'dev_content_manage_portal_web', // 共享平台应用名
    path: 'gem-mine-docs-test', // 服务器路径
    key, // access_key,暂未实现,无需传入
    secret, // access_secret,暂未实现,无需传入
    dist, // 要上传的文件路径
    complete() {
      logger.done('CDN 文件上传完毕')
    },
    shouldUploadMapFile: false,// 自动过滤.map文件
    override: false,// 是否采用同名文件冲突覆盖策略
    ignoreFiles: [], // 过滤的文件名,用indexOf判断,默认为['index.html', 'version.json', '.DS_Store']
  })
} catch (e) {
  // e
}

Keywords

gem-mine

FAQs

Package last updated on 08 Jan 2024

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.