Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/minaxorg/koa-range
- Owner: minaxorg
- License: mit
- Created: 2019-03-25T07:49:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T09:37:55.000Z (almost 6 years ago)
- Last Synced: 2024-11-16T16:26:29.799Z (2 months ago)
- Topics: koa-range, koa2
- Language: JavaScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```