Gathering detailed insights and metrics for @masx200/koa-range
Gathering detailed insights and metrics for @masx200/koa-range
Gathering detailed insights and metrics for @masx200/koa-range
Gathering detailed insights and metrics for @masx200/koa-range
npm install @masx200/koa-range
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (96.53%)
Makefile (3.47%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
78 Commits
1 Forks
3 Branches
4 Contributors
Updated on Jul 06, 2022
Latest Version
1.0.5
Package Id
@masx200/koa-range@1.0.5
Unpacked Size
60.78 kB
Size
21.06 kB
File Count
10
NPM Version
8.5.1
Node Version
18.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
forked from
https://github.com/koajs/koa-range
It seems that the original project has not been updated for a long time.
The following problems have been fixed.
https://github.com/koajs/koa-range/issues/17
https://github.com/koajs/koa-range/issues/15
https://github.com/koajs/koa-range/issues/16
https://github.com/koajs/koa-range/issues/19
https://github.com/koajs/koa-range/issues/20
=================
range request implementation for koa
1$ npm install @masx200/koa-range
1var fs = require("fs"); 2var range = require("@masx200/koa-range"); 3var route = require("koa-route"); 4var Koa = require("koa"); 5var app = new Koa(); 6 7app.use(range); 8 9// via buffer 10app.use( 11 route.get("/", async function (ctx) { 12 ctx.body = new Buffer(100); 13 }) 14); 15 16// via object 17app.use( 18 route.get("/json", async function (ctx) { 19 ctx.body = { 20 foo: "bar", 21 }; 22 }) 23); 24 25// via readable stream 26app.use( 27 route.get("/stream", async function (ctx) { 28 ctx.body = fs.createReadStream("your path"); 29 }) 30);
Until async/await is supported by default, you will need to do one of the following:
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More