TreeMap
A free, open-source disk-space visualizer. Squarified treemap, duplicate hunting, disk-full forecasting, and cleanup that only ever moves files to the Trash.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证ZIP create/extract in the browser (Rust + WebAssembly) with Shift_JIS/UTF-8 filename detection and ZipCrypto/AES-256
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗ZIP create / extract in the browser — Rust + WebAssembly, with Shift_JIS / UTF-8 filename detection and password-protected ZIP (ZipCrypto / AES-256).
Live demo: WebTool Free – ZIP Tool · 日本語 README
auto (UTF-8 / Shift_JIS / CP437 fallback) or a manual overrideERR_PASSWORD_REQUIRED, ERR_BAD_PASSWORD).., ., drive letters and empty segments are dropped; \ becomes /)For auto mode the raw filename bytes of each entry (name_raw) are decoded as follows
(src/filename.rs, decode_name):
zip crate (CP437 when the UTF-8 flag is absent).Notes:
0x7075)
are not inspected explicitly by this engine yet. Pure-UTF-8 detection by byte validity covers
the common cases, but a Shift_JIS name that happens to be valid UTF-8 is a theoretical misdetection;
use the manual override in that case.Details: docs/encoding.md
Build the package (see below), then:
import init, { compress_with_options, extract_ex, list_entries } from "./pkg/zip_wasm.js";
await init();
// files: [{ name: string, data: Uint8Array }, ...]
const zip = compress_with_options(files, "sjis", "secret", "zipcrypto");
// ^ "utf8" | "sjis"
// ^ "" = no password
// ^ "aes256" | "zipcrypto"
const entries = list_entries(zip); // [{ name, size, compressedSize, isDir, encrypted }]
const out = extract_ex(zip, "auto", "secret"); // [{ name, data, size }] ("auto" | "utf8" | "sjis" | "cp437")
| Function | Purpose |
|---|---|
compress(files) | UTF-8 names, no password |
compress_with_options(files, nameEncoding, password, encryption) | Full control |
extract(zip) / extract_ex(zip, encoding, password) | Extract (auto-detect / explicit) |
list_entries(zip) / list_entries_ex(zip, encoding) | List entries without extracting |
cargo install wasm-pack
wasm-pack build --target web --release
cargo test
test-fixtures/ contains small ZIPs (Shift_JIS, UTF-8, ZipCrypto, AES-256; password is password)
that you can use to test your own ZIP tools. They are generated by:
cargo test -- --ignored generate_fixtures
ERR_BAD_PASSWORD.Built on these open-source crates:
| Crate | License |
|---|---|
| zip | MIT |
| encoding_rs | (Apache-2.0 OR MIT) AND BSD-3-Clause |
| flate2 | MIT OR Apache-2.0 |
| crc32fast | MIT OR Apache-2.0 |
| wasm-bindgen / js-sys | MIT OR Apache-2.0 |
| getrandom | MIT OR Apache-2.0 |
Licensed under either of Apache License 2.0 or MIT license at your option.