Modules | @vltpkg/pick-manifest
Type Aliases
ManiCheck<T>
Type Parameters
• T extends Packumentish
Type declaration
deprecated
mani
platform
prerelease
version
Defined in
index.ts:25
Manifestish
Defined in
index.ts:21
Packumentish
Defined in
index.ts:22
PickManifestish<T>
Type Parameters
• T extends Packumentish
Defined in
index.ts:23
PickManifestOptions
Type declaration
arch?
before?
node-version?
os?
tag?
Defined in
index.ts:13
Functions
pickManifest()
Choose the most appropriate manifest from a packument.
If before
is set in the options, then the packument MUST
be a full non-minified Packument object. Otherwise, a minified packument
is fine.
Type Parameters
• T extends Packumentish
Parameters
• packument: T
• wanted: string
| Range
| Spec
• opts: PickManifestOptions
= {}
Returns
PickManifestish
<T
> | undefined
Defined in
index.ts:118
platformCheck()
Call with a manifest and the node version and process platform/arch to check whether a version is suitable for the current platform.
Parameters
• mani: Manifestish
• nodeVersion: string
| Version
• wantOs?: Platform
• wantArch?: Architecture
Returns
boolean
Defined in
index.ts:75