1.0.9 • Published 7 years ago
pubdir v1.0.9
pubdir
A minimal HTTP file server
Installation
npm install -g pubdirExample
Expose all *.mp4 files recursively at port 6000.
Note that glob pattern must be quoted to prevent bash expansion.
pubdir -p 6000 "**/*.mp4" --duration 30m- When
-por--portis not present, random port number is used by default. - When glob pattern is not
present,
*is used by default. - If want to run server temporaliy , specify
--durationoptionally. Usemsuffix to specify server alive duration by minutes. (his hours,sis seconds) If time-unit is not present,mis used by default.
License
Distributed under the MIT license
Copyright (C) 2016 Retorillo