Package Exports
- node-http-streamer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-http-streamer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node HTTP Streamer
HTTP-Streaming for Node.js
A simple lightweight Express-Middleware that serves static content by Streaming
Set Up
Installation
$ npm install node-http-streamer
Import
const streamer = require("node-http-streamer");
Sample
Just provide a path to a directory with media files for streaming(Video, Audio, etc).
const express = require("express");
const path = require("path");
const streamer = require("node-http-streamer");
const app = express();
// Stream all contents of directory "video" at path "/stream"
app.use("/stream", streamer(path.join(__dirname, "video")));
Links
Github: https://github.com/GregoryPevnev/node-streamer NPM: https://www.npmjs.com/package/node-http-streamer