npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pub_oss

v1.0.4

Published

上传文件到OSS

Downloads

48

Readme

pub_oss NPM version NPM monthly downloads NPM total downloads

  • 上传前端打包出来的文件到oss
  • 复制index.html到单独的目录.

Table of Contents

Install

Install with npm:

$ npm install --save pub_oss

Configure

  • package.json
{
  "scripts": {
    "pub_oss": "npx pub_oss",
  }
}

Environment

  • ACCESSKEY_ID (必填)
  • ACCESSKEY_SECRET (必填)
  • REGION 地域
  • BUCKET 通用bucket
  • PUBLIC_PATH 目标文件夹
  • WORKDIR 工作目录
  • ACCESSKEY_TOKEN gitee API token
  • USE_TAG 是否基于tag上传
  • BUCKET_PRIVATE 私有bucket
  • USE_BUCKET_PRIVATE 启用私有bucket
  • USE_BUCKET_COMMON 启用通用bucket
  • COPY_HTML 是否复制index.html到单独的目录, 默认值为空, 可选值:"true"

Usage

  • bash
npm run pub_oss

Release history

v1.0.4

  • 修复一些问题
  • 除密钥信息外,其他都为非必传

v1.0.3

  • 修改环境变量 PUBLIC_PATH 为非必填项

v1.0.2

  • 增加环境变量 COPY_HTML,用于控制是否复制index.html到单独的目录, 默认值为空, 可选值:"true"
  • 修改环境变量 USE_BUCKETUSE_BUCKET_COMMON,用于控制是否上传到通用bucket, 默认值为空, 可选值:"true"

v1.0.1

  • 默认不上传文件
  • 增加环境变量 BUCKET_PRIVATE,用于指定要上传的私有bucket
  • 增加环境变量 USE_BUCKET_PRIVATE,用于控制是否上传私有bucket, 默认值为空, 可选值:"true"
  • 增加环境变量 USE_BUCKET,用于控制是否上传公共bucket, 默认值为空, 可选值:"true"

v1.0.0

  • 修复获取最新Tag时未按更新时间排序的问题

v0.0.9

  • 新增环境变量 TEAM, 用于指定要查询仓库所属的团队名, 非必填
  • 新增环境变量 WORKDIR,用于指定要查询tag的仓库
  • 新增环境变量 ACCESSKEY_TOKEN,gitee API token
  • 新增环境变量 USE_TAG, 用于控制是否基于tag上传, 默认值为空, 可选值:"true"

v0.0.8

  • 增加 README.md

v0.0.7

  • 新增环境变量 REGION

v0.0.6

  • 新增环境变量 BUCKET

v0.0.5

  • 更新 bucket

v0.0.4

  • 新增环境变量 ACCESSKEY_ID,ACCESSKEY_SECRET

About

License

Released under the MIT License.