1.5.4 • Published 2 years ago

cydiarepodownloader v1.5.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

CydiaRepoDownloader

Simple Cydia Repo installer and parser for NodeJS

Like this? Check out the CyDesktop application being made with this package!

Usage

Parse Repository as JSON

import * as CRD from 'cydiarepodownloader';
const repoData = await CRD.parseRepo(repoURL);
// This creates a JSON stingified format. An example is provided in: "example.json"
/* OUTPUTS:
    onError: false
    onSuccess: true
/*

Parse Repository as JSON (Packages ONLY)

import * as CRD from 'cydiarepodownloader';
const repoData = await CRD.parsePackages(repoURL);
// This creates a JSON stingified format. An example is provided in: "example.json" (only the packages are saved in this mode.)
/* OUTPUTS:
    onError: false
    onSuccess: true
/*

Download Package from Repo

import * as CRD from 'cydiarepodownloader';
await CRD.downloadPackageFromRepo(repoURL,packageName, directoryToDownload+"/whatever.deb");
/* OUTPUTS:
    onError: false
    onSuccess: true
/*

Download all Packages from Repo

import * as CRD from 'cydiarepodownloader';
await CRD.downloadAllPackagesFromRepo(repoURL, directoryToDownload);
/* OUTPUTS:
    Errors: ["packagename1","packagename2"]

    (if errors are empty, you get an empty array)
/*