Swiftpack.co - mtgto/Unrar.swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mtgto.
mtgto/Unrar.swift 0.3.12
Swift library wraps unrar C++ library provided by rarlib.
⭐️ 17
🕓 2 weeks ago
.package(url: "https://github.com/mtgto/Unrar.swift.git", from: "0.3.12")


Swift swift-format

Swift library wraps unrar C++ library provided by rarlib.


  • ☑ Supported
    • ☑ List entries of archive
    • ☑ Extract to memory
    • ☑ Extract encrypted archive by password
    • ☑ Get comment from the archive
    • ☑ Get comment from archive entries
    • ☑ SFX archive
  • ☐ Unsupported
    • ☐ Extract to file
    • ☐ Extract from archive on the memory
    • ☐ Multi-Volume


import Unrar

let archive = try Archive(filePath: "/path/to/archive.rar")
let comment = try archive.comment()
let entries = try archive.entries()
let extractedData = try archive.extract(entries[0])


Swift Package Manager (SPM)

Add https://github.com/mtgto/Unrar.swift to your Package.swift.

Related projects


Swift parts of this software is released under the MIT License, see LICENSE.txt.

C++ library has different license. See Sources/Cunrar/readme.txt.


Stars: 17
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago
  • Update unrar to v6.2.6

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics