mihomo-updater
v0.0.11
Published
Updater for mihomo
Downloads
9
Readme
mihomo-updater
An updater API designed to simplify the process of downloading Mihomo files.
Install
npm install -D mihomo-updater
Uasage
import { getGeo, getLatestVersion, getTarget } from "mihomo-updater";
import { arch, platform } from "node:process";
const dest = "path/to/store/files";
// Download the latest version of mihomo
const alpha = false;
const version = await getLatestVersion(alpha);
await getTarget(platform, arch, version, alpha).saveTo(dest);
// Download mmdb and rename it to 'Country.mmdb'
await getGeo("mmdb", () => "Country.mmdb").saveTo(dest);