gzip 0.2.0 copy "gzip: ^0.2.0" to clipboard
gzip: ^0.2.0 copied to clipboard

A lightweight package for gzip compression.

A lightweight package for gzip, relying on dart:io and package:web for the actual implementations.

Example:

import 'dart:typed_data';

import 'package:gzip/gzip.dart';

Future<void> main() async {
  final zipper = GZip();
  final input = Uint8List.fromList('Hello World'.codeUnits);
  final compress = await zipper.compress(input);
  print('Encoded: $compress');
  final decompress = await zipper.decompress(Uint8List.fromList(compress));
  print('Decoded: $decompress');
}
2
likes
140
pub points
79%
popularity

Publisher

unverified uploader

A lightweight package for gzip compression.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

web

More

Packages that depend on gzip