Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 430 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 430 Bytes

koa-range · npm

range request implementation for koa2

Install

npm install @minax/koa-range

Quick Overview

const Koa = require('koa')
const range = require('@minax/koa-range')

const app = new Koa()

app.use(async (ctx, next) => {
  await range(ctx, '/Users/admin/1.mp4')
})

app.listen(3000)