dart_mobi 1.0.2 copy "dart_mobi: ^1.0.2" to clipboard
dart_mobi: ^1.0.2 copied to clipboard

A port of libmobi in dart.

A port of libmobi to Dart.

NOTE: This package is a direct port of functions of libmobi mainly for my personal use and is not thoroughly tested. Use it at your own risk.

Features #

  • Reading and parsing mobi, azw, azw3, azw4 files
  • Reconstructing dictionary, reference and links
  • Only rely on UInt8List so it is usable on web

Usage #

import 'package:dart_mobi/dart_mobi.dart';
import "dart:io";
import "dart:convert";
void main() async {
  final data = await File("example/980.mobi").readAsBytes();
  final mobiData = await DartMobiReader.read(data);
  final rawml = mobiData.parseOpt(true, true, false);
  print(utf8.decode(List<int>.from(rawml.markup!.data!)));
}

TODO #

  • Write mobi files
  • finish encryption
0
likes
130
points
34
downloads

Publisher

verified publisherhanayuki.me

Weekly Downloads

A port of libmobi in dart.

Repository (GitHub)

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

archive, collection

More

Packages that depend on dart_mobi