npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

quantumsync

v0.3.7

Published

A two-way file sychronization util

Downloads

29

Readme

实时双向文件同步工具

QuantumSync 用于实现两台电脑之间文件夹的自动双向同步,支持 Windows, Mac, Linux 。

CircleCI NPM Version node DUB

安装

  1. 安装 Wathcman

    QuantumSync 基于 Facebook's Watchman 实现文件目录的监控功能。在运行 QuantumSync 之前首先需要在两台同步的电脑上都安装 Watchman 。

    安装方法见 https://facebook.github.io/watchman/docs/install.html 。

    Linux 上需要编译安装,以下是 Ubuntu 16.04 编译命令。

    sudo apt-get install libtool m4 automake autoconf pkg-config libssl-dev
    git clone https://github.com/facebook/watchman.git
    cd watchman
    git checkout v4.9.0  # the latest stable release
    ./autogen.sh
    ./configure --without-python --without-pcre
    make
    sudo make install
  2. 安装 Quantum Sync

    npm i -g quantumsync

执行命令

远程目录

quantumsync serve [ -f /folder/to/sync ] [-p port]

本地目录

quantumsync sync [ -f /folder/to/sync ] -h remote.ip [-p remotePort] -c password

密码为 quantumsync serve 动态生成

配置文件

QuantumSync 默认读取监控目录下 .quantumsync/quantumsync.config.json 作为其可选的配置文件。

{
    "usePassword": true,
    "useSSL": false,
    "sslOptions": {
        "key": "/path/to/key.pem",
        "cert": "/path/to/cert.pem",
        "passphrase": ""
    },
    "ignores": ["node_modules", ".git"],
    "secret": ""
}
  1. usePassword - 是否需要密码,默认需要。
  2. useSSL - 是否使用加密传输,默认关闭。在公开网络使用时,建议开启。开启时,需要配置 sslOptions 。
  3. sslOptions - 加密传输配置
  • key - 加密私钥文件路径
  • cert - 加密证书文件路径
  • passphrase - 如果加密使用了 passphrase 则填写。可选参数。
  1. ignores - 忽略文件列表,语法同 gitignore 。

  2. secret - 密码混淆随机字符串,建议修改。任意 > 0 长度字符串即可。

常见问题

  1. Ubuntu 上文件打开数量限制 https://github.com/facebook/watchman/issues/163