ts-pkgx
Version:
A library & CLI for managing packages
64 lines • 1.32 kB
TypeScript
export type { Packages, Pantry } from './packages';
export declare interface ProjectFolder {
name: string
url: string
}
export declare interface FetchProjectsOptions {
apiUrl?: string
}
export declare interface GitHubContent {
name: string
path: string
sha: string
size: number
url: string
html_url: string
git_url: string
download_url: string | null
type: 'dir' | 'file'
_links: {
self: string
git: string
html: string
}
}
/**
* Represents a pkgx package with its metadata
*/
export declare interface PkgxPackage {
name: string
domain: string
description: string
packageYmlUrl?: string
homepageUrl?: string
githubUrl?: string
installCommand: string
pkgxInstallCommand: string
launchpadInstallCommand: string
programs: string[]
companions: string[]
dependencies: string[]
versions: string[]
aliases?: string[]
fullPath?: string
fetchedAt?: number
}
/**
* Options for package fetching methods
*/
export declare interface PackageFetchOptions {
timeout?: number
outputDir?: string
cacheDir?: string
debug?: boolean
limit?: number
cache?: boolean
cacheExpirationMinutes?: number
concurrency?: number
browser?: any
outputJson?: boolean
pantryDir?: string
}
export declare interface FetchPkgxPackageOptions {
url?: string
}