feedit
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Feed It

Stream video file from a place to your target

Usage

It shows you how to install the package, and how to use it from your projects.

Installation

npm install feedit

Samples

Stream video with Express

feedIt.stream({ url: 'https://vjs.zencdn.net/v/oceans.mp4', range: req.headers.range, method: req.method }, (data, meta) => {
  if(meta.status === 200) {
    res.writeHead(meta.headers);
    return res.end();
  }
  res.writeHead(meta.status, meta.headers);
  data?.pipe(res);
}).catch(err => {

});

/feedit/

    Package Sidebar

    Install

    npm i feedit

    Weekly Downloads

    11

    Version

    1.0.8

    License

    Apache-2.0

    Unpacked Size

    19.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • mihui