all-package-names
Version:
Fast lookup and iteration over all NPM package names
15 lines • 820 B
TypeScript
export type Manifest = {
since: number;
count: number;
namesSha256: string;
};
export declare const defaultNamesPath: string;
export declare const defaultManifestPath: string;
export declare function getNamesFileContents(names: readonly string[]): string;
export declare function createManifest(names: readonly string[], since: number): Manifest;
export declare function readNamesFile(path: string): Promise<string[]>;
export declare function writeNamesFile(path: string, names: readonly string[]): Promise<void>;
export declare function readManifest(path: string): Promise<Manifest>;
export declare function writeManifest(path: string, manifest: Manifest): Promise<void>;
export declare function ensureStoreFiles(namesPath?: string, manifestPath?: string): Promise<void>;
//# sourceMappingURL=store.d.ts.map