lzma 1.0.1 copy "lzma: ^1.0.1" to clipboard
lzma: ^1.0.1 copied to clipboard

LZMA compression library written in pure dart. Use this library to compress and decompress using the LZMA algorithm.

example/example.dart

import 'dart:async';
import 'dart:io';

import 'package:lzma/lzma.dart';

Future main(List<String> args) async {
  if (args.length != 2) {
    // ignore: avoid_print
    print('Usage: compress input output');
    return;
  }

  final inFile = File(args[0]);
  final outFile = File(args[1]);

  final encoded = lzma.encode(await inFile.readAsBytes());
  await outFile.writeAsBytes(encoded);
}
12
likes
150
points
537
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

LZMA compression library written in pure dart. Use this library to compress and decompress using the LZMA algorithm.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

fixnum

More

Packages that depend on lzma