unrar 0.1.2 copy "unrar: ^0.1.2" to clipboard
unrar: ^0.1.2 copied to clipboard

A Dart FFI package for extracting RAR archives using the official UnRAR library from RARLab.

unrar #

A Dart FFI package for extracting RAR archives using the official UnRAR library from RARLab.

Features #

  • Extract RAR archives (RAR4 and RAR5 formats)
  • List files in RAR archives
  • Extract to memory or disk
  • Native performance using FFI
  • Cross-platform support (Windows, macOS, Linux)
  • Uses Dart 3.10 build hooks for automatic compilation

Usage #

import 'package:unrar/unrar.dart';

void main() {
  final extractor = UnrarExtractor();

  // List files in archive
  final files = extractor.listFiles('archive.rar');
  for (final file in files) {
    print('${file.name}: ${file.size} bytes');
  }

  // Extract all files
  extractor.extractAll('archive.rar', 'output_dir/');

  // Extract specific file
  final data = extractor.extractFile('archive.rar', 'file.txt');
}

License #

This package uses the UnRAR library which has its own license terms. Please see the UnRAR license for details on usage restrictions.

2
likes
160
points
291
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart FFI package for extracting RAR archives using the official UnRAR library from RARLab.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

code_assets, ffi, hooks, logging, native_toolchain_c

More

Packages that depend on unrar