Host your local disk in you LAN / WAN.so that any one can access your harddisk over the network by using the web browser like indexing
npm install sharemydiskAuthor: Ankit K Kashyap

This is a Node project that serves the directory over local/internet if port forwarding is enabled. Host your local disk on your LAN/WAN so that anyone can access your hard disk over the network by using a web browser for indexing.
Using npx
``bash`
$ npx sharemydisk -p 80 -d /yourdirectory/path
Open the link mentioned in server is up http://192.168.0.1013:3000
CTR + C : to exit.
Using npm
Then import in your application to use it. like
index.js
const sharemydisk = require('sharemydisk')
sharemydisk()
Then
execute it from command node index.js -p 3001 -d ../
For development:
1. npm inpm start
2.
For production build:
npm run buildshareMe/app.js
Inside , the build is ready to run anywhere without any node_module files. If you want to learn how to build, go to: https://youtu.be/P1v227ZFqM4
Simply download/copy the shareMe folder and run the command below, only available after npm run build.
- -p for port // default is 3000-d
- for directory. // default is your current directory-s
- for https Secure mode // default is https
node app.js -p 3000 -d ../abc/yourDirectory# sharemydisk
1. Download Node.js from the official site or by searching it on Google.
2. npm i sharemydisk or `bash`
$ npx sharemydisk -p 80 -d /yourdirectory/pathnpm run build
3. ./shareMe
4. Copy the folder where you want to serve the content.node app` in the same path.
5. Open terminal/powershell and run
Buy me a Dosha :

