# node.js-sdk **Repository Path**: kuaidaili/node.js-sdk ## Basic Information - **Project Name**: node.js-sdk - **Description**: 快代理node.js代码样例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.kuaidaili.com - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-04-16 - **Last Updated**: 2024-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 快代理API SDK - Node.js 通过SDK可快速调用API接口,[查看详情](https://github.com/kuaidaili/node.js-sdk/tree/master/api-sdk) # 快代理官方代码样例 - Node.js ## API部分: ### node_api.js 使用内置模块调用api示例, http/https网页均适用 ## Http部分: ### node_http_http.js: 使用内置模块请求Http代理服务器, 仅适用http网页 ### node_http_all.js: 使用内置模块请求Http代理服务器, http/https网页均可适用 ### node_http_request.js: 适用第三方模块`request`请求Http代理服务器, http/https网页均可适用 ``` 使用提示: 请先安装request模块: npm install request ``` ### node_puppeteer_http.js: 使用`puppeteer`模块请求Http代理服务器, http/https网页均适用 ``` 使用提示: 请先安装puppeteer模块: npm install puppeteer ``` ## Socks部分 ### node_socks.js: 使用`request-promise`和`socks-proxy-agent`模块请求Socks代理服务器, http/https网页均适用 ### node_puppeteer_socks.js: 使用`puppeteer`模块请求Socks代理服务器, http/https网页均适用 ``` 使用提示: 请先安装puppeteer模块: npm install puppeteer ``` ## 隧道代理部分 ### node_tps_all.js 使用内置模块请求隧道代理服务器, http/https网页均可适用 ### node_tps_request.js 适用第三方模块`request`请求隧道代理服务器, http/https网页均可适用 ``` 使用提示: 请先安装request模块: npm install request ``` ### node_tps_puppeteer.js: 使用`puppeteer`模块请求隧道代理服务器, http/https网页均适用 ``` 使用提示: 请先安装puppeteer模块: npm install puppeteer ```