ngpack 0.0.3 copy "ngpack: ^0.0.3" to clipboard
ngpack: ^0.0.3 copied to clipboard

outdated

A simple command-line application to list or extract files from ggpack files.

example/main.dart

import 'package:ngpack/ngpack.dart';

void main(List<String> arguments) {
  // create a ggpack file
  final key = Keys[KnownKey.Key56ad]!;
  final encoder = GGPackFileEncoder(key)
    ..addContent('hello.txt', 'hello world')
    ..addMap('hello.wimpy',
        {'hello': 'world', 'int': 42, 'double': 3.14, 'null': null})
    ..close();
  final bytes = encoder.toBytes();

  // list all the files in it
  final pack = GGPackFileDecoder(bytes, key);
  pack.forEach(print);

  // display their content
  print('hello.txt:' + pack.extractContent('hello.txt'));
  print('hello.wimpy: ' + pack.extractMap('hello.wimpy').toString());
}
0
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A simple command-line application to list or extract files from ggpack files.

Homepage

License

unknown (license)

Dependencies

args, glob, path

More

Packages that depend on ngpack