@bleed-believer/path-alias
Version:
Assign path alias using tsconfig.json file
8 lines (7 loc) • 352 B
TypeScript
/**
* Checks if a package is installed in the specified project.
*
* @param {string} moduleName - The name of the package to check.
* @returns {boolean} - Returns true if the package is installed, or if it is a native Node module; otherwise, returns false.
*/
export declare function isPackageInstalled(moduleName: string, url?: string): boolean;