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

vite-plugin-zip-output

v0.0.15

Published

a vite plugin to compress output folder to zip

Downloads

7

Readme

vite-plugin-zip-output

一个压缩打包构建的文件为zip的插件。 插件会根据vite.config.jsbuild.outDir配置把打包输出的文件夹压缩为一个zip格式的压缩包

使用

import VitePluginZipOutput from 'vite-plugin-zip-output'

export default defineConfig({
  plugins: [VitePluginZipOutput()],
})

参数

|参数|类型|必填|简介| |--|--|--|--| |zipName|string|×|压缩包的名称。默认为build.outDir的设置的文件夹名称。| |destPath|false | string |×|压缩内容存放的路径。默认使用build.outDir的设置的文件夹名称作为根路径(解压根据配置 destPath: 'dist'生成压缩包后,文件内容包含在dist文件夹下)。若传false则表示无根路径(解压后的就直接就是文件内容了) 。| |isSend|boolean|×|压缩完成后是否以该压缩包为附件发送到邮箱。默认为false不发送。| |user|string|×|发送者的qq邮箱。当isSend: true的时候必传。| |pass|string|×|发送者qq邮箱的授权码。当isSend: true的时候必传。| |to|string|×|接收者的qq邮箱。当isSend: true的时候且没有传值的时候, user所设置的邮箱即使发送者也是接收者|

授权码

目前仅支持qq邮箱

QQ邮箱

在网页QQ邮箱端管理授权码

在邮箱帐号与安全点击 设备管理 > 授权码管理,对授权码进行管理。

在QQ邮箱APP端管理

在QQ邮箱App点击左上角头像 > 在我的帐户列表下点击帐号>安全管理>设备管理,对授权码进行管理。