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.