knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
11 lines (10 loc) • 807 B
TypeScript
export declare const getPackageNameFromModuleSpecifier: (moduleSpecifier: string) => string | undefined;
export declare const getPackageNameFromFilePath: (value: string) => string;
export declare const getPackageNameFromSpecifier: (specifier: string) => string | undefined;
export declare const isStartsLikePackageName: (specifier: string) => boolean;
export declare const stripVersionFromSpecifier: (specifier: string) => string;
export declare const extractBinary: (command: string) => string;
export declare const isDefinitelyTyped: (packageName: string) => boolean;
export declare const getDefinitelyTypedFor: (packageName: string) => string;
export declare const getPackageFromDefinitelyTyped: (typedDependency: string) => string;
export declare const sanitizeSpecifier: (specifier: string) => string;