file-stream
file-stream is a little HTTP server helper that streams binary resources. These resources will commonly be audio or video, but any type of file is fair game.
Install
npm install file-stream
API
file-stream(
path (string):
the filesystem path of the file being requested.
request (IncomingMessage):
the request object provided by http.createServer.
response (ServerResponse):
the response object provided by http.createServer.
)
=> handled (boolean)
Example
var http =var stream =var filepath = '/path/to/file'http