Modules | @vltpkg/package-info
Classes
PackageInfoClient
Constructors
new PackageInfoClient()
Parameters
• options: PackageInfoClientOptions
= {}
Returns
Defined in
index.ts:133
Properties
monorepo?
Defined in
index.ts:119
options
Defined in
index.ts:116
packageJson
Defined in
index.ts:118
Accessors
registryClient
Returns
Defined in
index.ts:121
tarPool
Returns
Defined in
index.ts:128
Methods
extract()
Parameters
• spec: string
| Spec
• target: string
• options: PackageInfoClientRequestOptions
= {}
Returns
Promise
<Resolution
>
Defined in
index.ts:151
manifest()
Parameters
• spec: string
| Spec
• options: PackageInfoClientRequestOptions
= {}
Returns
Promise
<Manifest
>
Defined in
index.ts:414
packument()
Parameters
• spec: string
| Spec
• options: PackageInfoClientRequestOptions
= {}
Returns
Promise
<Packument
>
Defined in
index.ts:519
resolve()
Parameters
• spec: string
| Spec
• options: PackageInfoClientRequestOptions
= {}
Returns
Promise
<Resolution
>
Defined in
index.ts:582
tarball()
Parameters
• spec: string
| Spec
• options: PackageInfoClientRequestOptions
= {}
Returns
Promise
<Buffer
>
Defined in
index.ts:298
Type Aliases
PackageInfoClientAllOptions
Defined in
index.ts:63
PackageInfoClientOptions
Type declaration
monorepo?
packageJson?
PackageJson object
projectRoot?
root of the project. Defaults to process.cwd()
workspace?
workspace paths to load, irrelevant if Monorepo provided
workspace-group?
workspace groups to load, irrelevant if Monorepo provided
Defined in
index.ts:42
PackageInfoClientRequestOptions
Type declaration
from?
dir to resolve file://
specifiers against. Defaults to projectRoot.
Defined in
index.ts:58
Resolution
Type declaration
integrity?
resolved
signatures?
spec
Defined in
index.ts:35
Functions
extract()
Parameters
• spec: string
| Spec
• target: string
• options: PackageInfoClientAllOptions
= {}
Returns
Promise
<Resolution
>
Defined in
index.ts:105
manifest()
Parameters
• spec: string
| Spec
• options: PackageInfoClientAllOptions
= {}
Returns
Promise
<Manifest
>
Defined in
index.ts:90
packument()
Parameters
• spec: string
| Spec
• options: PackageInfoClientAllOptions
= {}
Returns
Promise
<Packument
>
Defined in
index.ts:85
resolve()
Parameters
• spec: string
| Spec
• options: PackageInfoClientAllOptions
= {}
Returns
Promise
<Resolution
>
Defined in
index.ts:95
tarball()
Parameters
• spec: string
| Spec
• options: PackageInfoClientAllOptions
= {}
Returns
Promise
<Buffer
>
Defined in
index.ts:100