【文件属性】:
文件名称:nobone-sync:一个简单的远程文件同步工具,用于开发
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-01 06:07:23
JavaScript
骨干同步
一个简单的远程文件同步工具,用于开发。
这也是如何工作的简单示例。
安装
全局安装:
npm install -g nobone-sync
安装为lib依赖项:
npm install nobone-sync
用法
作为CLI工具
启动远程文件服务器:
nobone-sync -s
启动本地客户端以将更改推送到远程服务器。
nobone-sync config.js
config.js的默认值为:
module . exports = {
localDir : 'localDir' ,
// It decides the root path to upload to.
remoteDir : 'remoteDir' ,
// It decides the root accessible path.
rootAllowed : '
【文件预览】:
nobone-sync-master
----main.js(2KB)
----server.js(6KB)
----nofile.js(161B)
----config.default.js(254B)
----.travis.yml(60B)
----test()
--------local()
--------basic.js(2KB)
--------remote()
----client.js(5KB)
----.gitignore(36B)
----readme.md(5KB)
----bin()
--------nobone-sync(41B)
----package.json(761B)