JSPM

node-http-streamer

1.0.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q36314F
    • License ISC

    A Node.js implementation of HTTP-Streaming for serving static Media-Content as an Express Middleware

    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

    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")));

    Github: https://github.com/GregoryPevnev/node-streamer NPM: https://www.npmjs.com/package/node-http-streamer