Skip to content

minaxorg/koa-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)