proxy-pool-manager 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
## 📦 安装
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install
|
|
19
|
+
npm install proxy-pool-manager
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 🚀 快速开始
|
|
@@ -24,7 +24,7 @@ npm install proxy_manager
|
|
|
24
24
|
### 基本使用
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
27
|
-
import { createProxyRequest } from '
|
|
27
|
+
import { createProxyRequest } from 'proxy-pool-manager';
|
|
28
28
|
|
|
29
29
|
// 创建 SDK 实例
|
|
30
30
|
const sdk = await createProxyRequest({
|
|
@@ -191,7 +191,7 @@ interface SDKOptions {
|
|
|
191
191
|
### 多实例场景
|
|
192
192
|
|
|
193
193
|
```typescript
|
|
194
|
-
import { initializeServices } from '
|
|
194
|
+
import { initializeServices } from 'proxy-pool-manager';
|
|
195
195
|
|
|
196
196
|
// 创建多个独立的 SDK 实例
|
|
197
197
|
const sdk1 = await initializeServices({
|
|
@@ -264,7 +264,7 @@ console.log({
|
|
|
264
264
|
### 批量插入代理
|
|
265
265
|
|
|
266
266
|
```typescript
|
|
267
|
-
import { bulkInsertProxyUrls } from '
|
|
267
|
+
import { bulkInsertProxyUrls } from 'proxy-pool-manager';
|
|
268
268
|
|
|
269
269
|
const count = await bulkInsertProxyUrls({
|
|
270
270
|
mongoUri: 'mongodb://localhost:27017/proxy_db',
|
|
@@ -288,7 +288,7 @@ console.log(`成功插入 ${count} 个代理`);
|
|
|
288
288
|
### 队列快速开始
|
|
289
289
|
|
|
290
290
|
```typescript
|
|
291
|
-
import { AsyncQueueSingleton } from '
|
|
291
|
+
import { AsyncQueueSingleton } from 'proxy-pool-manager';
|
|
292
292
|
|
|
293
293
|
// 创建队列实例
|
|
294
294
|
const queue = AsyncQueueSingleton.getInstance('my-queue', {
|
|
@@ -640,7 +640,7 @@ import type {
|
|
|
640
640
|
ProxyItem,
|
|
641
641
|
ProxyCheckOptions,
|
|
642
642
|
LogLevel
|
|
643
|
-
} from '
|
|
643
|
+
} from 'proxy-pool-manager';
|
|
644
644
|
```
|
|
645
645
|
|
|
646
646
|
## ⚠️ 注意事项
|