Skip to main content

FreeBSD

These functions can be used to pull data related to FreeBSD artifacts.

You can access these functions by using git to clone the API TypeScript bindings.
Then you may import them into your TypeScript code.

For example:

import { getPkgs } from "./artemis-api/mod";

function main() {
const start = 0;
const limit = 100;

const results = getPkgs(start, limit);
return results;
}

main();

getPkgs(offset, limit, path) -> Pkg[] | LinuxError

Get list of installed pkgs on the system. You may provide an optional alternative full path to the local.sqlite file.

You must provided an offset and the amount of packages to query from the database.

ParamTypeDescription
offsetnumberQuery offset to start at. 0 will start at the first package in the database
limitnumberHow many packages to query
alt_pathstringOptional path to the local.sqlite file