Skip to content

Transfer files over WiFi between your computer and your smartphone from the terminal

License

Notifications You must be signed in to change notification settings

maanimis/shareFile-QR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShareFile-QR

Transfer files over WiFi between your computer and your smartphone from the terminal using QR codes.

alt text

Features

  • Upload files to a specified directory on your server.
  • Download files from the server.
  • Generate QR codes for easy file sharing.

Requirements

  • Node.js (v12 or later)

Installation

  1. Clone the repository:

    git clone https://github.com/maanimis/shareFile-QR
    cd shareFile-QR
    
  2. Install the dependencies:

npm install

Usage

Upload Mode

Start the server in upload mode by specifying the root directory where files should be uploaded:

node src/index.js --root . --port 3000 --ip 192.168.0.101

This will start the server and generate a QR code. Scan the QR code with your smartphone to access the upload interface.

Download Mode

Start the server in download mode by specifying the file to download:

node index.js --download /path/to/file --port 3000 --ip 192.168.0.101

This will start the server and generate a QR code. Scan the QR code with your smartphone to download the specified file.

This command starts the server on port 3000, using the local IP address 192.168.1.100, and sets the root directory for uploads to ./uploads.

Command-line Options

─➤  node index.js -h                                               
Options:
      --version        Show version number                       
  -r, --root           Root directory path to save/upload files   
  -p, --port           Port number                 [default: 3000]
      --ip_addr, --ip  IP address       [default: "192.168.1.101"]
      --download       File to download                           
  -h, --help           Show help    

About

Transfer files over WiFi between your computer and your smartphone from the terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published