MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / cleanResponseText

Method cleanResponseText

yt-dlp/yt-dlp.ts:116–119  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

114
115class HttpClient {
116    static cleanResponseText(text: string): string {
117        if (!text) return text;
118        return text.replace(/^\uFEFF/, '').normalize('NFKC');
119    }
120    static async makeRequest(url: string, options: any = {}): Promise<any> {
121        const { method = 'GET', headers = {}, data, timeout = 30000 } = options;
122        return new Promise((resolve, reject) => {

Callers 2

makeRequestMethod · 0.45
searchMusicMethod · 0.45

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected