UNPKG

675 BPlain TextView Raw
1/**
2 * `DistInfo` contains data describing the distributed package.
3 *
4 * @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
5 */
6export interface DistInfo {
7 /** Tarball URL */
8 readonly tarball: string;
9
10 /** SHA1 sum of the tarball */
11 readonly shasum: string;
12
13 /** Usually, SHA512 sum of the tarball preceded by `sha512-` */
14 readonly integrity?: string;
15
16 /** Number of files in the tarball */
17 readonly fileCount?: number;
18
19 /** Total size in bytes of the unpacked files in the tarball */
20 readonly unpackedSize?: number;
21
22 /** npm PGP signature */
23 readonly 'npm-signature'?: string;
24}