Installations
npm install vite-plugin-zip-pack-svelte
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
22.0.0
NPM Version
10.5.1
Score
55.3
Supply Chain
80.7
Quality
76.7
Maintenance
100
Vulnerability
97.3
License
Releases
Unable to fetch releases
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Download Statistics
Total Downloads
252
Last Day
1
Last Week
1
Last Month
9
Last Year
252
Bundle Size
97.18 kB
Minified
28.52 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.3
Package Id
vite-plugin-zip-pack-svelte@0.0.3
Unpacked Size
16.66 kB
Size
3.81 kB
File Count
6
NPM Version
10.5.1
Node Version
22.0.0
Published on
May 10, 2024
Total Downloads
Cumulative downloads
Total Downloads
252
Last Day
0%
1
Compared to previous day
Last Week
-75%
1
Compared to previous week
Last Month
-43.8%
9
Compared to previous month
Last Year
0%
252
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
vite-plugin-zip-pack-svelte
Vite plugin for packing distribution/build folder into a zip file.
The plugin based on vite-plugin-zip-pack extends some parameters. "https://github.com/7th-Cyborg/vite-plugin-zip-pack".
Install
1npm i -D vite-plugin-zip-pack-svelte
Usage
1// vite.config.js 2 3import { defineConfig } from 'vite'; 4import zipPack from 'vite-plugin-zip-pack-svelte'; 5 6export default defineConfig({ 7 plugins: [zipPack()], 8});
Options
1export interface Options { 2 /** 3 * Input Directory 4 * @default `dist` 5 */ 6 inDir?: string; 7 /** 8 * Output Directory 9 * @default `dist-zip` 10 */ 11 outDir?: string; 12 /** 13 * Zip Archive Name 14 * @default `dist.zip` 15 */ 16 outFileName?: string; 17 /** 18 * Path prefix for the files included in the zip file 19 * @default `` 20 */ 21 pathPrefix?: string; 22 /** 23 * Callback, which is executed after the zip file was created 24 * err is only defined if the save function fails 25 */ 26 done?: (err: Error | undefined) => void; 27 /** 28 * update filename in configResolved 29 */ 30 updateOutFileName?: (options: Object) => string | undefined; 31 /** 32 /** 33 * check if file/env is valid for compression 34 * such as only compress in SSR 35 */ 36 validCompress?: (options: Object) => boolean; 37 /** 38 * Filter function equivalent to Array.prototype.filter 39 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter 40 * is executed for every files and directories 41 * files and directories are only included when return ist true. 42 * All files are included when function is not defined 43 */ 44 filter?: (fileName: string, filePath: string, isDirectory: boolean) => Boolean; 45}
License
MIT, see the license file

No vulnerabilities found.

No security vulnerabilities found.