純 JavaScript 實現的 RAR 壓縮文件瀏覽庫:rar.js
rar.js提供了一個RAR格式的純javascript實現,允許你在客戶端和服務器端提取或操縱打包數據。
它支持多種輸入:AJAX, File API (HTML5) 和 local disk (NodeJS)。
rar.js 用到了 dataview-extra 和 reader.js。
- Large file support (currently the entire file will be in memory when
RarArchive.get
is called) - Decompression support
- Encryption support
- Recognise volumes/split archives
- Parse other entries (e.g. comments)
示例代碼:
var archive = RarArchive(file, function(err) { if(err) { // An error occurred (not a rar, read error, etc) return; } // Use archive });
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!