Skip to content

sumitchawla/file-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-browser

file-browser allows embedding of a web-enabled file browser in your node site.

Original Author Credit: Sumit Chawla

How to install

  npm install file-browser

How to Run

An exmplae server is implemented in:

  ./cli.js

You would see the message Please open the link in your browser http://:8088 in your console. Now you can point your browser to your IP. For localhost access the files over http://127.0.0.1:8088

The example cli supports following command line switches for additional functinality.

    -p, --port <port>        Port to run the file-browser. Default value is 8088
    -e, --exclude <exclude>  File extensions to exclude. To exclude multiple extension pass -e multiple times. e.g. ( -e .js -e .cs -e .swp)

ScreenShot