@1-/scan 0.1.12 → 0.1.13
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 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Basic usage:
|
|
|
34
34
|
import scan from "@1-/scan";
|
|
35
35
|
|
|
36
36
|
// Scan directory and get update list
|
|
37
|
-
const [updateFiles, upsert] = await scan("/path/to/dir", "/path/to/
|
|
37
|
+
const [updateFiles, upsert] = await scan("/path/to/dir", "/path/to/db_dir", ["file1.js", "file2.json"]);
|
|
38
38
|
|
|
39
39
|
console.log("Files that need updating:", updateFiles);
|
|
40
40
|
|
|
@@ -63,6 +63,8 @@ The architecture prioritizes efficiency through several key design decisions:
|
|
|
63
63
|
- CSV processing: `@1-/csv`
|
|
64
64
|
- Gitignore management: `@1-/upsert_gitignore`
|
|
65
65
|
- Concurrency control: `@3-/plimit`
|
|
66
|
+
- Integer handling: `@3-/int`
|
|
67
|
+
- Variable byte encoding: `@3-/vb`
|
|
66
68
|
|
|
67
69
|
## Code structure
|
|
68
70
|
|
|
@@ -122,7 +124,7 @@ npm install @1-/scan
|
|
|
122
124
|
import scan from "@1-/scan";
|
|
123
125
|
|
|
124
126
|
// 扫描目录并获取更新列表
|
|
125
|
-
const [updateFiles, upsert] = await scan("/path/to/dir", "/path/to/
|
|
127
|
+
const [updateFiles, upsert] = await scan("/path/to/dir", "/path/to/db_dir", ["file1.js", "file2.json"]);
|
|
126
128
|
|
|
127
129
|
console.log("需要更新的文件:", updateFiles);
|
|
128
130
|
|
|
@@ -151,6 +153,8 @@ await upsert();
|
|
|
151
153
|
- CSV处理:`@1-/csv`
|
|
152
154
|
- Gitignore管理:`@1-/upsert_gitignore`
|
|
153
155
|
- 并发控制:`@3-/plimit`
|
|
156
|
+
- 整数处理:`@3-/int`
|
|
157
|
+
- 可变字节编码:`@3-/vb`
|
|
154
158
|
|
|
155
159
|
## 代码结构
|
|
156
160
|
|