UNPKG

@bleed-believer/path-alias

Version:
8 lines (7 loc) 352 B
/** * 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;