0.2.5 • Published 11 months ago

@mathcovax/easyshare v0.2.5

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Easyshare

How to use it with gloabl command:

# install on your machine
npm i -g @mathcovax/easyshare

# start on port 80 and share current dir with global command
easyshare 80

How to use it with local command:

# install in your project
npm i @mathcovax/easyshare

# start on port 80 and share current dir with local command
npx easyshare 80

How to use it in javascript:

# install in your project
npm i @mathcovax/easyshare
// in index.js

// import easyshare
import Easyshare from "@mathcovax/easyshare";

// start on port 80 and share folder "mySuperFolder" of current workdir 
new Easyshare({port: 80, path: "./mySuperFolder"});
# execute javascript file
node index.js

How to use it with docker:

# start docker image
# you must bind folder "/share" of container
# you must bind on port 80 of container
docker run -v $(pwd)/mySuperFolder:/share -p 1506:80 mathcovax/easyshare

How to use it with docker compse:

# in docker-compose.yml

version: '3'
services:
  easyshare:
    image: mathcovax/easyshare
    # use port 80
    # you must bind on port 80 of container
    ports:
     - '1506:80'
    # sync folder "mySuperFolder" with "share"
    # you must bind folder "/share" of container
    volumes:
      - ./mySuperFolder:/share
# start docker compose
docker compose up
0.2.5

11 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

1.0.0

1 year ago

0.0.1

1 year ago