crosssync 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +36 -2
- package/dist/index.js +5872 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CrossSync contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CrossSync
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
跨浏览器书签与历史记录同步 CLI —— 定时同步 Chrome 和 Edge 的数据。
|
|
4
|
+
|
|
5
|
+
通过直接读取本地浏览器数据文件实现:**不需要浏览器扩展,不需要常驻进程,也没有实时同步**。
|
|
6
|
+
一次运行就是「读取 → 备份 → 合并 → 写回书签 → 导出 JSON」。
|
|
7
|
+
|
|
8
|
+
## 安装
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install -g crosssync
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
使用 pnpm 全局安装时,需要允许 `better-sqlite3` 运行安装脚本:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add -g --allow-build=better-sqlite3 crosssync
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 使用
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
crosssync sync --bookmarks # 只同步书签(会写回)
|
|
24
|
+
crosssync sync --bookmarks --dry-run # 预览,不碰任何文件
|
|
25
|
+
crosssync sync --history # 只读导出历史
|
|
26
|
+
crosssync sync --strategy export # 完全只读,仅导出合并结果
|
|
27
|
+
crosssync status # 浏览器、备份与定时任务状态
|
|
28
|
+
crosssync install-cron # 每天 09:00 自动同步
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
运行数据位于 `~/.crosssync/`(配置、备份、导出、日志)。
|
|
32
|
+
|
|
33
|
+
完整文档见仓库主页:https://github.com/anliluZoe/CrossSync
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|