@mathcovax/easyshare
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mathcovax/easyshare

Weekly Downloads

0

Version

0.2.5

License

none

Unpacked Size

889 kB

Total Files

9

Last publish

Collaborators

  • mathcovax