t-comm
Version:
专业、稳定、纯粹的工具库
14 lines (13 loc) • 351 B
TypeScript
import type * as Cheerio from 'cheerio';
/**
* 获取 cheerio 库
* cheerio 是一个用于在服务端解析 HTML 的第三方库
* @returns cheerio 库
* @example
* ```ts
* const cheerio = getCheerio();
* const $ = cheerio.load('<h1>hello</h1>');
* $('h1').text(); // 'hello'
* ```
*/
export declare function getCheerio(): typeof Cheerio;