Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/minaxorg/koa-range

range request implementation for koa2
https://github.com/minaxorg/koa-range

koa-range koa2

Last synced: about 1 month ago
JSON representation

range request implementation for koa2

Awesome Lists containing this project

README

        

# koa-range · [![npm](https://img.shields.io/npm/v/@minax/koa-range.svg)](https://www.npmjs.com/package/@minax/koa-range)
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)
```