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

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
mtgto/Unrar.swift
Swift library wraps unrar C++ library provided by rarlib.
.package(url: "https://github.com/mtgto/Unrar.swift.git", from: "0.3.7")

Unrar

Swift swift-format

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

Feature

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

Usage

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])

Installation

Swift Package Manager (SPM)

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

Related projects

License

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

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

GitHub

link
Stars: 5
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

0.3.7
2 weeks ago
  • Fix Package.swift excludes non exist files (#3)

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