@nodesecure/scanner
Version:
A package API to run a static analysis of your module's dependencies.
21 lines • 1.12 kB
TypeScript
import * as tarball from "@nodesecure/tarball";
import type Config from "@npmcli/config";
import { depWalker } from "./depWalker.ts";
import { Logger, ScannerLoggerEvents } from "./class/logger.class.ts";
import { comparePayloads } from "./comparePayloads.ts";
import type { Options } from "./types.ts";
export * from "./types.ts";
export * from "./extractors/index.ts";
export type WorkingDirOptions = Options & {
/**
* NPM runtime configuration (such as local .npmrc file)
* It is optionally used to fetch registry authentication tokens
*/
npmRcConfig?: Config;
};
export declare function workingDir(location?: string, options?: WorkingDirOptions, logger?: Logger): Promise<import("./types.ts").Payload>;
export type FromOptions = Omit<Options, "includeDevDeps">;
export declare function from(packageName: string, options?: FromOptions, logger?: Logger): Promise<import("./types.ts").Payload>;
export declare function verify(packageName?: string): Promise<tarball.ScannedPackageResult>;
export { depWalker, tarball, comparePayloads, Logger, ScannerLoggerEvents };
//# sourceMappingURL=index.d.ts.map