# NpmRegistryClient Service

Module
import { NpmRegistryClient } from "@tsed/cli-core"
Source/packages/cli-core/src/services/NpmRegistryClient.ts

# Overview

class NpmRegistryClient {
    static escapeName(name: string): string;
    request(pathname: string, opts?: any): Promise<any>;
    getRequestUrl(registry: string, pathname: string): string;
    search(text: string, options?: {
        size?: number;
        from?: number;
        quality?: number;
        popularity?: number;
        maintenance?: number;
    }): Promise<any>;
    info(packageName: string, retry?: number): Promise<PackageInfo>;
}

# Members

static escapeName(name: string): string

request(pathname: string, opts?: any): Promise<any>

getRequestUrl(registry: string, pathname: string): string

search(text: string, options?: {
     size?: number;
     from?: number;
     quality?: number;
     popularity?: number;
     maintenance?: number;
 }): Promise<any>;

Search a module on npm registry


info(packageName: string, retry?: number): Promise<PackageInfo>