1.0.5 • Published 6 years ago

node-http-streamer v1.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Node HTTP Streamer

HTTP-Streaming for Node.js

Build Status

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