node-mobiunpack
Simple Node.js wrapper of mobiunpack 0.32 to unpack or export images from .mobi files.
Install
npm install mobiunpack
Usage
const { unpack, exportImages } = require("mobiunpack");
unpack("test.mobi", "output/unpack");
exportImages("test.mobi", "output/images");
CLI
Usage: mobiunpack <mobiFile> [outputDir] [--images]
Arguments:
mobiFile path to .mobi file
outputDir output directory (default: ".")
Options:
--images export sorted images
Development
Build mobiunpack executable file
pip install -i https://mirrors.aliyun.com/pypi/simple/ pyinstaller==3.6
pyinstaller -F "mobiunpack.py"