UNPKG

@omni-door/utils

Version:

The utils of omni-door's projects

13 lines (12 loc) 471 B
export declare type Options = { protocol?: string; hostname?: string; registry?: string; }; export declare function getNpmVersion(pkgName: string, options?: Options): Promise<string | null>; export declare function getNpmVersions(pkgName: string, options?: Options): Promise<string[]>; declare function npmVersionCheck(pkgName: string, v: string, options?: { protocol?: string; hostname?: string; }): Promise<boolean>; export default npmVersionCheck;