Type Aliases
Bugs
Defined in: index.ts:76
ConditionalValue
Defined in: index.ts:42
ConditionalValueObject
Defined in: index.ts:38
Index Signature
Dist
Defined in: index.ts:19
The Manifest[‘dist’] field present in registry manifests
Type declaration
fileCount?
integrity?
shasum?
signatures?
tarball?
unpackedSize?
Exports
Defined in: index.ts:52
ExportsSubpaths
Defined in: index.ts:48
Funding
Defined in: index.ts:59
FundingEntry
Defined in: index.ts:58
Imports
Defined in: index.ts:56
Integrity
Defined in: index.ts:13
sha512 SRI string
JSONField
Defined in: index.ts:4
anything that can be encoded in JSON
KeyID
Defined in: index.ts:16
SHA256 key identifier
Manifest
Defined in: index.ts:83
Type declaration
acceptDependencies?
dependency ranges that are acceptable, but not forced
bin?
executable built and linked by this package
bugs?
where to go to file issues
bundleDependencies?
names of dependencies included in the package tarball
cpu?
supported CPU architectures this package can run on
dependencies?
production dependencies, name:specifier
deprecated?
a message indicating that this is not to be used
description?
a short description of the package
devDependencies?
development dependencies, name:specifier
dist?
Only present in Manifests served by a registry. Contains information about the artifact served for this package release.
engines?
supported run-time platforms this package can run on
exports?
named subpath exports
funding?
URLs that can be visited to fund this project
gitHead?
the HEAD of the git repo this was published from only present in published packages
gypfile?
npm puts this on published manifests
imports?
named #identifier imports
keywords?
search keywords
main?
the main module, if exports[’.’] is not set
name?
The name of the package. optional because {} is a valid package.json
optionalDependencies?
optional dependencies, name:specifier
os?
supported operating systems this package can run on
peerDependencies?
peer dependencies, name:specifier
peerDependenciesMeta?
peer dependencies marked as optional
private?
whether the package is private
repository?
where the development happens
scripts?
run-script actions for this package
type?
whether this is ESM or CommonJS by default
version?
The version of the package. optional because {} is a valid package.json
ManifestRegistry
Defined in: index.ts:148
Packument
Defined in: index.ts:151
Type declaration
dist-tags
modified?
name
readme?
time?
versions
PeerDependenciesMetaValue
Defined in: index.ts:32
An object used to mark some peerDeps as optional
Type declaration
optional?
Person
Defined in: index.ts:61
RefType
Defined in: index.ts:160
Repository
Defined in: index.ts:69
RevDoc
Defined in: index.ts:180
An object kind of resembling a packument, but about a git repo.
Type declaration
refs
all named things that can be cloned down remotely
shas
all named shas referenced above
versions
all semver-looking tags go in this record
RevDocEntry
Defined in: index.ts:165
A representation of a given remote ref in a RevDoc object.
Type declaration
rawRef
canonical full ref, like refs/tags/blahblah
ref
ref as passed git locally
sha
sha this references
type
what type of ref this is: ‘branch’, ‘tag’, etc.
Functions
asIntegrity()
Defined in: index.ts:193
Parameters
i
unknown
Returns
`sha512-${string}`
asKeyID()
Defined in: index.ts:217
Parameters
k
unknown
Returns
`SHA256:${string}`
asManifest()
Defined in: index.ts:302
Parameters
m
unknown
from?
(…a
) => any
Returns
asManifestRegistry()
Defined in: index.ts:312
Parameters
m
unknown
from?
(…a
) => any
Returns
asPackument()
Defined in: index.ts:348
Parameters
p
unknown
from?
(…a
) => any
Returns
assertIntegrity()
Defined in: index.ts:207
Parameters
i
unknown
Returns
asserts i is `sha512-${string}`
assertKeyID()
Defined in: index.ts:231
Parameters
k
unknown
Returns
asserts k is `SHA256:${string}`
assertManifest()
Defined in: index.ts:326
Parameters
m
unknown
Returns
asserts m is Manifest
assertManifestRegistry()
Defined in: index.ts:331
Parameters
m
unknown
Returns
asserts m is ManifestRegistry
assertPackument()
Defined in: index.ts:362
Parameters
m
unknown
Returns
asserts m is Packument
isIntegrity()
Defined in: index.ts:190
Parameters
i
unknown
Returns
i is `sha512-${string}`
isKeyID()
Defined in: index.ts:214
Parameters
k
unknown
Returns
k is `SHA256:${string}`
isManifest()
Defined in: index.ts:284
Parameters
m
unknown
Returns
m is Manifest
isManifestRegistry()
Defined in: index.ts:297
Parameters
m
unknown
Returns
m is ManifestRegistry
isPackument()
Defined in: index.ts:337
Parameters
p
unknown
Returns
p is Packument