Gathering detailed insights and metrics for koa-serve
Gathering detailed insights and metrics for koa-serve
npm install koa-serve
Typescript
Module System
Node Version
NPM Version
67.4
Supply Chain
81
Quality
77.2
Maintenance
25
Vulnerability
100
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
69,897
Last Day
2
Last Week
35
Last Month
211
Last Year
1,908
MIT License
5 Stars
22 Commits
2 Forks
2 Watchers
2 Branches
2 Contributors
Updated on Jul 23, 2019
Minified
Minified + Gzipped
Latest Version
0.1.7
Package Id
koa-serve@0.1.7
Size
2.63 kB
NPM Version
3.3.10
Node Version
4.2.2
Published on
Dec 24, 2015
Cumulative downloads
Total Downloads
Last Day
-60%
2
Compared to previous day
Last Week
9.4%
35
Compared to previous week
Last Month
36.1%
211
Compared to previous month
Last Year
-23%
1,908
Compared to previous year
Koa middleware for serving static files. Simple but works.
var koa = require('koa'),
serve = require('koa-serve'),
app = koa();
app.use(serve('assets'));
app.listen(8000);
You can also define where you root dir is, if isn't __dirname
.
var koa = require('koa'),
serve = require('koa-serve'),
app = koa();
app.use(serve('assets', '/path/to/your/root'));
app.listen(8000);
Example if your client files are in the parent directory, and index.js is in server/ for example:
var koa = require('koa'),
serve = require('koa-serve'),
path = require('path'),
app = koa();
app.use(serve('assets', path.join(__dirname, '..', 'client'));
app.listen(8000);
The MIT License (MIT)
Copyright (c) 2015 Adam K Dean
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/21 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-24
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