@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
11 lines (10 loc) • 342 B
TypeScript
/**
* Resolve directory path from a package.json file path.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function resolvePackageJsonDirname(filepath: string): string;
/**
* Resolve full path to package.json from a directory or file path.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function resolvePackageJsonPath(filepath: string): string;