0.1.8 • Published 4 years ago
@robmcelhinney/qr-file-share v0.1.8
qr-file-share
Node.js http server allowing for file transfers over local area network made easier with QR code output on start.
Download application
https://github.com/robmcelhinney/qr-file-share/releases
Install
Install from repo:
$ git clone git@github.com:robmcelhinney/qr-file-share.git
$ cd qr-file-share
$ npm installInstall with npm/Node.js:
$ npm i @robmcelhinney/qr-file-share -gUsage
Must be on same WiFi.
$ cd /dir/to/share
$ qr-file-shareManual
$ node binCall other path
$ node bin --path=/path/to/shareDemo

Start & watch
$ npm startOpen http://localhost:8080 to view it in the browser. Also provides the local ip address and a qr code to view on another device on same network.
Help
$ qr-file-share --helpor
$ node bin.js --helpDOCKER
Does this need docker? Who knows? Probably not but I want to learn Docker. The QR code links to the container's ip so it doesn't work over the local network but should work on the device running the container.
Build
$ docker build -t qr-file-share .Run
$ docker run -dp 8080:8080 --name qr-file-share --mount type=bind,source=/path/to/share,target=/target qr-file-share --path=/targetBuilt With
- QR Code: https://github.com/gtanner/qrcode-terminal
- Archiver: https://github.com/archiverjs/node-archiver
- Meow (CLI helper): https://www.npmjs.com/package/meow