clipboard-share

Share clipboard between two computers

Usage no npm install needed!

<script type="module">
  import clipboardShare from 'https://cdn.skypack.dev/clipboard-share';
</script>

README

clipboard-share

Build Status npm version

Description

It's a small client-server script which allows to synchronise clipboard between two computers. It's very useful when you have a virtual machine like VirtualBox without installed guest additions (Mac OS X guest for example). It works on Linux, Mac OS X and Windows.

Installation (both client and server)

  1. Install Node.js

    • on OSX use homebrew brew install node
    • on Windows use chocolatey choco install nodejs
    • on Debian based linux use apt-get install nodejs npm
  2. Install clipboard-share with npm:

    npm install -g clipboard-share

Usage

Starting a server using one of the following ways:

clipboard-share                  # Using default settings, bind to 0.0.0.0:1077
clipboard-share 192.168.1.2      # Using default port 1077
clipboard-share 192.168.1.2:1077 # Full syntax

Starting a client using one of the following ways:

clipboard-share -c                  # Using default settings, connect to 10.0.2.2:1077
clipboard-share -c 192.168.1.2      # Using default port 1077
clipboard-share -c 192.168.1.2:1077 # Full syntax

Setting refresh interval in milliseconds (how often script will spy on clipboard changes), can be set in both client and server mode:

clipboard-share -c -i 100

License

Licensed under MIT.