node-http-streamer

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i node-http-streamer

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

7.05 kB

Total Files

11

Last publish

Collaborators

  • greg-pevnev