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 🙏

© 2026 – Pkg Stats / Ryan Hefner

umi-plugin-qiniu

v1.0.6

Published

> 基于 Umi 4.0 开发

Readme

umi-plugin-qiniu

基于 Umi 4.0 开发

一款自动上传Umi项目打包构建完成后的文件到七牛云的插件。

安装

npm i umi-plugin-qiniu --save-dev

or

yarn add umi-plugin-qiniu -D

or

pnpm add umi-plugin-qiniu -D

使用

在 .umirc.ts 中配置

import { defineConfig } from "umi";

export default defineConfig({
  plugins: [
    ['umi-plugin-qiniu'],
  ],

  qiniu: {
    qiniu: {
      accessKey: '七牛的 accessKey',
      secretKey: '七牛的 secretKey',
      bucket: '七牛的存储空间名字',
      domain: 'xxx',
      directory: 'xxx',
    },
    options: {
      archive: {
        trigger: true,
        fileName: 'xxx',
        output: './',
      },
    },
  },
});

配置项

qiniu 必填

配置七牛云相关的配置

| 属性 | 说明 | 类型 | 默认值 | 必填 | | :----: | :----: | :----: | :----: | :----: | | accessKey | 七牛的 accessKey | string | - | 必填 | | secretKey | 七牛的 secretKey | string | - | 必填 | | bucket | 七牛的存储空间名字 | string | - | 必填 | | domain | 上传后资源的访问域名 | string | - | 必填 | | directory | 上传到七牛云的目录 | string | - | 非必填 |

options 非必填

此插件相关的配置

| 属性 | 说明 | 类型 | 默认值 | 必填 | | :----: | :----: | :----: | :----: | :----: | | outputPath | umi 构建产物的输出目录名字 | string | dist | 非必填 | | archive | 是否需要将构建产出的目录压缩打包后上传整个压缩包 | Archive | - | 非必填 | | excludeHtml | 不上传html | boolean | false | 非必填 | | exclude | 排除的文件 | RegExp | /.DS_Store/ | 非必填 |

interface Archive {
  trigger: boolean; // true: 触发  false:不触发
  fileName: string; // 输出的文件名
  output?: string; // 输出的路径
}

TODO

  1. ✅ 将 umi 构建产物目录中内容上传到七牛云
  2. ✅ 将 umi 构建产物目录压缩成 .zip 包后上传到七牛云
  3. 如有需要欢迎提 issue ...

LICENSE

MIT