snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
28 lines (27 loc) • 635 B
TypeScript
export interface FormattedCliOutput {
topLevelDeps: string[];
dependencies: FlatDependenciesMap;
}
export declare type FlatDependenciesMap = Map<string, string[]>;
export declare type YarnInfoOutput = Array<{
value: string;
children: {
Version: string;
Dependents?: string[];
Dependencies?: {
descriptor: string;
locator: string;
}[];
};
}>;
export interface YarnListTree {
name: string;
children: {
name: string;
color: string;
shadow: boolean;
}[];
hint: string | null;
color: string | null;
depth: number;
}