@vltpkg/package-info
Classes
PackageInfoClient
Defined in: index.ts:119
Constructors
new PackageInfoClient()
Defined in: index.ts:140
Parameters
options
Returns
Properties
monorepo?
Defined in: index.ts:126
options
Defined in: index.ts:123
packageJson
Defined in: index.ts:125
Accessors
registryClient
Get Signature
Defined in: index.ts:128
Returns
tarPool
Get Signature
Defined in: index.ts:135
Returns
Methods
extract()
Defined in: index.ts:158
Parameters
spec
string
| Spec
target
string
options
PackageInfoClientExtractOptions
= {}
Returns
Promise
<Resolution
>
manifest()
Defined in: index.ts:424
Parameters
spec
string
| Spec
options
PackageInfoClientRequestOptions
= {}
Returns
Promise
<Manifest
>
packument()
Defined in: index.ts:529
Parameters
spec
string
| Spec
options
PackageInfoClientRequestOptions
= {}
Returns
Promise
<Packument
>
resolve()
Defined in: index.ts:592
Parameters
spec
string
| Spec
options
PackageInfoClientRequestOptions
= {}
Returns
Promise
<Resolution
>
tarball()
Defined in: index.ts:308
Parameters
spec
string
| Spec
options
PackageInfoClientRequestOptions
= {}
Returns
Promise
<Buffer
>
Type Aliases
PackageInfoClientAllOptions
Defined in: index.ts:69
PackageInfoClientExtractOptions
Defined in: index.ts:63
Type declaration
integrity?
resolved?
PackageInfoClientOptions
Defined in: index.ts:42
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
PackageInfoClientRequestOptions
Defined in: index.ts:58
Type declaration
from?
dir to resolve file://
specifiers against. Defaults to projectRoot.
Resolution
Defined in: index.ts:35
Type declaration
integrity?
resolved
signatures?
spec
Functions
extract()
Defined in: index.ts:112
Parameters
spec
string
| Spec
target
string
options
PackageInfoClientAllOptions
= {}
Returns
Promise
<Resolution
>
manifest()
Defined in: index.ts:97
Parameters
spec
string
| Spec
options
PackageInfoClientAllOptions
= {}
Returns
Promise
<Manifest
>
packument()
Defined in: index.ts:92
Parameters
spec
string
| Spec
options
PackageInfoClientAllOptions
= {}
Returns
Promise
<Packument
>
resolve()
Defined in: index.ts:102
Parameters
spec
string
| Spec
options
PackageInfoClientAllOptions
= {}
Returns
Promise
<Resolution
>
tarball()
Defined in: index.ts:107
Parameters
spec
string
| Spec
options
PackageInfoClientAllOptions
= {}
Returns
Promise
<Buffer
>